How can I do if then else in RegexPatternGroups? I've tried (?if then|else). Any ideas?
I am modifying the html states and have some custom script that could be inside of an html attribute's value. So if I encounter the string "[%" then I want to check for the ending string "%]" and allow quotes inside of the string, otherwise I want to match on anything but quotes ([^"]+).
Any help/suggestions appreciated.