Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Look-Arounds in Regexes are Hard

by papidave (Pilgrim)
on Jul 27, 2009 at 20:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://783665]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2024-04-23 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found