in reply to
Re^2: Perl & regex help
in thread Perl & regex help
It fails on a string like this: "I saw a dog & a cat;".
A safer solution, would be: /&(?!#?[a-zA-Z0-9]+;)/
Excellent catch! Perhaps just the following: /&(?!\S+?;)/
Results (449 votes),