in reply to Writing a negative regex using =~
my( $flag, $regex ) = /(\s*(\!))?(.*)/;
? text !~ $regex
: $text =~ $regex
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (365 votes). Check out past polls.