Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Regexp: Match anything except a certain word

by ikegami (Pope)
on Apr 21, 2006 at 17:15 UTC ( #544950=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    '<a href="..." target="...">' =~ /
       <a            # Matches '<a'.
    ...
       .+?           # Matches 'href="..." target="..."'.
       >             # Matches '>'.
    /isx;
    
  2. or download this
    '<a target="..." href="...">' =~ /
       <a            # Matches '<a'.
    ...
       .+?           # Matches 'arget="..." href="..."'.
       >             # Matches '>'.
    /isx;
    
  3. or download this
    /(?:(?!$re).)*/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-06-29 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (387 votes). Check out past polls.