Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Look-Arounds in Regexes are Hard

by papidave (Pilgrim)
on Jul 27, 2009 at 20:57 UTC ( #783665=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       Functions <code>abc()</code> and <code>foo()</code>
    
  2. or download this
       m#<code>((?:(?!foo).)*)</code>#
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
    Doubled matches like <code></code> foo <code></code> are evil.
    This should <code> skip the second loop</code><code> foo </code>.
    This <code> foo </code> should  <code> skip the first loop </code>.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2019-12-08 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (162 votes). Check out past polls.

    Notices?