At that point (three pages of parsing regexps), I think you are well into the territory where you should use a grammar engine. For instance, Parse-RecDescent, or my preferred, Marpa-R2
Good Day,
Dean
In reply to Re^5: Problem with capturing all matches with regex
by duelafn
in thread Problem with capturing all matches with regex
by igoryonya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |