in reply to No \G for s///g ?
\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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: No \G for s///g ? (oops)
by tye (Sage) on Mar 21, 2003 at 21:52 UTC | |
by demerphq (Chancellor) on Mar 22, 2003 at 12:52 UTC | |
by tye (Sage) on Mar 22, 2003 at 19:59 UTC |
In Section
Seekers of Perl Wisdom