\G ... is only supported for m//g, not s///g
I didn't dig into your regex, but I think \G is supported for s///g;
-Blake$ perl -le '$_="abc def"; print; s/\G\w/X/g; print' abc def XXX def
In reply to Re: No \G for s///g ?
by blakem
in thread No \G for s///g ?
by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |