I don't think that your second varient works?
The problem being that your pos() which is looking at the pos of $_, but you are applying the s/// to an substr lvalue, which is a different animal all together?.
I could be wrong on this, but I can't seem to get it to work.
In reply to Re: Re: Replace zero-width grouping?
by BrowserUk
in thread Replace zero-width grouping?
by tinypig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |