Regex non greedy match.
In the below code I am attempting to match and then replace all the text apart from the uppercase stuff... It is uppercase to clearly point out the text I wish to keep but in the real world they could be any characters.
Ufortunately coldfusion is doing a greedy search on this and stripping out everything between the first and last parentheses.
I would like it to first match the 'removethis(delete me)' and then move onto the second "removethis(delete me)" text , ignoring all the other stuff.
Any help would be great.
Thanks!
strTest = 'removethis(delete me) DONT DELETE THIS removethis(delete me) DONT DELETE THIS';
strReFind = "\s*\w*\s*\(\s*\)";
strParse = reReplaceNoCase(strTest , strReFind , '');
dbort(strParse);
