Regexes are very powerful, but if you try to do too much with them, the regexes grow very fast in complexity, and you end up with a piece of mess that you can't maintain.
Use ordinary perl code to postprocess your results instead.
In reply to Re: want regex to find 2nd and 3rd occurence of a character
by moritz
in thread want regex to find 2nd and 3rd occurence of a character
by heidi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |