Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Since perl doesn't have a "look behind" Actually, Perl has a lookbehind (see perlre). What Perl doesn't have is variable length lookbehind, so if you do want lookbehinds of different lengths, they need to be multiple lookbehinds. Furthermore, the \s* makes it require one more lookbehind. This ought to do it though:
... though I suspect you really want to ensure word boundaries ... and add some /x whitespace for readability:
(But that's just a guess, and in any case beyond your question, so you may want to pretend I did not say that.)
print "Just another Perl ${\(trickster and hacker)},"
In reply to Re: Regex solution needed
by Sidhekin
|
|