Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Non-capturing zero-width negative lookahead

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


in reply to Re: Non-capturing zero-width negative lookahead
in thread Non-capturing zero-width negative lookahead

the colon depicts an (unrecognized) regexp extension

No, it doesn't. The colon is a literally matching atom, and the question mark is a quantifier. With some hopefully clearer /x spacing:

$foo =~ /( ( :? . # 0 or 1 colon + 1 non-newline char | # or \n (?! \n\n) # 1 newline not followed by two more newlin +es )+ ) /x

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://606076]
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-16 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found