
November 26th, 2009, 07:00 PM
|
|
|
|
It's far easier to search for the substring and place a not in your if statement. (and since your substring is constant using whatever string primitives your language provides should be a better solution than regex)
If you really must do it the confusing way, /^(?:(?!substring).)*$/.
__________________
sub{*{$::{$_}}{CODE}==$_[0]&& print for(%:: )}->(\&Meh);
|