[...] is a character class. You want (?!...) (see perlre). e.g., /&(?!amp;)/
Update: Darn. Too slow. :-) (Although I got the semicolon ;->)
In reply to Re: using regex to not match a string
by Tanktalus
in thread using regex to not match a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |