|The stupid question is the question not asked|
Regex priorities.by Steve_BZ (Chaplain)
|on May 28, 2012 at 00:54 UTC||Need Help??|
Steve_BZ has asked for the
wisdom of the Perl Monks concerning the following question:
I have a regex designed to pick out some XML tags.
A typical string might look like this:
I want to process the smallest and inner-most pair of tags first (ie, in this case <EXHIBITING></EXHIBITING>).
I am using the regex:
But it is processing the <COMMA><COMMA> pair first. How do I fix this?