jbullock35 has asked for the wisdom of the Perl Monks concerning the following question:
be replaced by some variation that uses (.*?) or something close to it?s<(\w+)/><$`$1\n>g
Call/me/Ishmael/becomes
Callafter the substitution.)
Call/me
Call/me/Ishmael
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: replacing $` with ordinary capturing in global substitutions
by borisz (Canon) on Sep 01, 2004 at 10:15 UTC | |
by tye (Sage) on Sep 01, 2004 at 19:57 UTC | |
by borisz (Canon) on Sep 01, 2004 at 20:13 UTC | |
by tye (Sage) on Sep 01, 2004 at 20:58 UTC | |
Re: replacing $` with ordinary capturing in global substitutions
by PodMaster (Abbot) on Sep 01, 2004 at 10:29 UTC | |
Re: replacing $` with ordinary capturing in global substitutions
by Roy Johnson (Monsignor) on Sep 01, 2004 at 15:02 UTC | |
Re: replacing $` with ordinary capturing in global substitutions
by Anonymous Monk on Sep 02, 2004 at 09:30 UTC |