![Avatar](https://secure.gravatar.com/avatar/43b56180a817e454ed83114cde90f59e.jpg?s=64&d=identicon&r=g)
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.