Thank you for the reply. I need it for automation script. I am using test complete to compare two html files - actual vs. expected. But there are some of the lines that I would like to ignore. So I want to use regex to find those lines and replace with a whitespace or some characteres so that the testcomplete passes the test. Right now I drilled down to very simple expression:
Example: If i try regex tester such as http://regexstorm.net/tester, , it shows 1 match but test complete says 0 match for the following so I am assuming regex dont work the same way as it normally does in test complete.
var test1 = "agent_1a2b3c_LangPref_0";
var regEx = "(?<=agent_).*?(?=_)";
var ppp = aqString.StrMatches(regEx,test1);
Test complete gives ppp = false which means it did not find any match. I dont seem to understand why. You have any ideas?