Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: RegEx: How to negate more than one character?

by Sidhekin (Priest)
on Mar 26, 2007 at 00:15 UTC ( [id://606503]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [^(ah|bh)]+
    
  2. or download this
    qr/(?:(?!ah|bh).)+/s;
    
  3. or download this
    qr/(?:.(?<!ah)(?<!bh))+/s;
    
  4. or download this
    qr/(?:(?!ah|bh).(?<!ah)(?<!bh))+/s;
    
  5. or download this
    qr/(?!ah|bh).(?:.(?<!ah)(?<!bh))*|(?:a|b)/s;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://606503]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found