XP is just a number | |
PerlMonks |
Re^4: phrase matchby ambrus (Abbot) |
on Dec 13, 2009 at 12:58 UTC ( [id://812583]=note: print w/replies, xml ) | Need Help?? |
That is useful sometimes, but here it's not needed, because a lookahead is enough. Run this:
You get the output
Update: There are ways to do this kind of thing without lookaheads or lookbehinds, just as a curiosity. Replace the substitution statement above with either or
Update: One more alternative is below.
Update: Oh, let's not forget this one either.
In Section
Seekers of Perl Wisdom
|
|