Perl: the Markov chain saw | |
PerlMonks |
Re: Replacing consecutive tokens in 1 passby Mr. Muskrat (Canon) |
on Feb 21, 2003 at 17:52 UTC ( [id://237508]=note: print w/replies, xml ) | Need Help?? |
You need a zero-width positive look-ahead assertion. The (?=\|) tells the regex engine to look for (but not act upon) the vertical bar.
In Section
Seekers of Perl Wisdom
|
|