Regex
Hi, I was trying to implement something similar to the following https://support.smartbear.com/testcomplete/docs/scripting/regular-expressions.html var regEx3 = /;(\r\n)+function/g; var ReplacementLines = ";\r\n\r\n//A helper routine\r\nfunction"; var test1 = "function Foo(Param1)"; var test2 = test1.replace(regEx3,ReplacementLines); but it does not give me the result as expected. var test = "class=organizationAgentGridInfoRightColumn_Text12345"; var regEx = /<=organizationAgentGridInfoRightColumn_Text>.*/gi; test = aqString.Replace(test,regEx,"abc"); Not sure what I am doing wrong. Is my regex wrong?Solved1.8KViews0likes4Comments