Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Non-capturing zero-width negative lookahead

by Sidhekin (Priest)
on Mar 22, 2007 at 16:31 UTC ( [id://606071]=note: print w/replies, xml ) Need Help??


in reply to Non-capturing zero-width negative lookahead

x $foo =~ /( (:? . | \n (?! \n\n) )+ ) /x

You have a bug: (:? should be (?:. That's what ends up as your second capturing group.

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Log In?
Username:
Password:

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

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

    No recent polls found