Wouldn't you solve your problem by handling a line at a time?
That's almost what I do, but I need the /gc modifier to restart from where the last regex left. Then, I can't use the match in list context as explained and so I don't see an easy way to get ($1, $2, ...) for free.
In reply to Re^2: How to get ($1, $2, ...)?
by ferreira
in thread How to get ($1, $2, ...)?
by ferreira
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |