Alex asked:<br><br>> Couldn't you just use the ~! on the regex instead of ~=?<br><br>Nope, see below.<br><br><div class="gmail_quote">On Thu, Mar 12, 2009 at 9:53 AM, Dave Doyle <span dir="ltr"><<a href="mailto:dave.s.doyle@gmail.com">dave.s.doyle@gmail.com</a>></span> wrote<br>
<br>> Is this because the regexes are being fed in from an external source?<div><br>Well the data is a given set, and the regex pattern is what I'm trying to develop<br> <br>> Do you have control of that source?<font color="#888888"></font></div>
<div><br>Nope<br><br>Basically there is a simple regex engine somewhere else that says<br><br>if (/$regex/) {print "match"; } else { print "no match"; }<br><br>and I need a regex pattern that is the 'NOT the given string' pattern.<br>
<br>So for the given the data set: 'bad', 'soso', 'maybe', and 'good'<br>I need to be able to say... 'return true if its anything but "good"'.<br><br><br><br></div></div><br>