Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: regex substring negation

by Cody Pendant (Prior)
on Jul 02, 2007 at 13:40 UTC ( #624443=note: print w/replies, xml ) Need Help??


in reply to regex substring negation

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.
--

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://624443]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2017-12-13 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (344 votes). Check out past polls.

    Notices?