Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: regex substring negation

by Cody Pendant (Prior)
on Jul 02, 2007 at 13:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://624443]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found