Regular expression for not matching a given string
When parsing through a series of strings, to find those that do not contain a specific string--'SESE' in this exampel--use this for the regex:
^((?!SESE).)*$
Or alternatively, this:
^((?!SESE).*)$
See
http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word for an explanation.
01/27/2012