[^\2] matches any character that isn't CTRL-B (assuming ASCII). And negative look-aheads use (?!...) not ($!...).
- tye
In reply to Re: Backreferences in negated character classes (two)
by tye
in thread Backreferences in negated character classes
by bobf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |