Python Replace Text With Regex In Javascript Example Table With Caption