What zwon said. You want a zero-width negative look-ahead assertion.
In reply to Re: How to use a negative backreference in regex?
by missingthepoint
in thread How to use a negative backreference in regex?
by larryk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |