in reply to Re: Matching ampersands that are NOT part of an HTML entity?
in thread Matching ampersands that are NOT part of an HTML entity?
Furthermore, the ';' is optional if a named entity is used, and isn't followed by other letters. So, I'd use:
/&(?![a-zA-Z]++(?:;|\b)|x[0-9a-fA-F]++;|[0-9]++;))/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Matching ampersands that are NOT part of an HTML entity?
by ikegami (Patriarch) on Aug 07, 2008 at 12:57 UTC |