in reply to regex & variable substitution

Further investigation showed a flaw in the regexp. I think it should be:
s/&([^;\s]+);/..
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.