in reply to
regex & variable substitution
Further investigation showed a flaw in the regexp. I think it should be:
s/&([^;\s]+);/..
[download]
ie, we avoid any words that start with an ampersand, but don't end in a semi-colon. The questionmarks, for non-greedy, become superfluos...
-- Ian Stuart
A man depriving some poor village, somewhere, of a first-class idiot.
Comment on
Re: regex & variable substitution
Download
Code
In Section
Seekers of Perl Wisdom