in reply to How to use a negative backreference in regex?
What zwon said. You want a zero-width negative look-ahead assertion.