in reply to Backreferences in negated character classes
[^\2] matches any character that isn't CTRL-B (assuming ASCII). And negative look-aheads use (?!...) not ($!...).
- tye