Oct 31, 2008 at 6:35 PM
Edited Nov 4, 2008 at 6:39 PM
IIRF does not support the use of an initial "!" to match if an expression isn't true.
IIRF depends on the PCRE library for its regular expression support. What that means is that if PCRE supports a regular expression construct, then IIRF "supports it". Really, IIRF doesn't do anything with the regular expressions except pass them
In any case....
You can use a negative look-ahead to do what you want.
For example (?!pattern)
matches any string that does not begin with pattern. It does not capture.
There are examples of this on this site - go to the home page and click the examples link.
There are also lots of examples of this in the Readme.txt file.
and scroll about halfway down that document, to the section entitled "PCRE - Perl-compatible regular expressions" (search for the term PCREPATTERN.
That document is fairly exhaustive, and for someone who is not familiar with regular expressions, it can be a little unapproachable. But still it is a good reference. About 75% of the way down, there is a summary of the PCRE RegEx syntax.
You can also play with the testdriver.exe to try out different regular expressions and how they match strings.