The stupid question is the question not asked | |
PerlMonks |
Re: regex substring negationby Cody Pendant (Prior) |
on Jul 02, 2007 at 13:40 UTC ( [id://624443]=note: print w/replies, xml ) | Need Help?? |
I'm confused. Isn't a regex which negates a substring just a negative regex?
As in, if you want to test that your string doesn't contain "foo", you just do !~ /foo/? Or indeed, use the substring function itself.
-- Nobody says perl looks like line-noise any more ... kids today don't know what line-noise IS. --
In Section
Seekers of Perl Wisdom
|
|