Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Negative Lookahead Assertion Problem (Perl 6)

by kelan (Deacon)
on Jul 19, 2005 at 12:10 UTC ( #476050=note: print w/replies, xml ) Need Help??


in reply to Negative Lookahead Assertion Problem

Here's how to do it in Perl 6 (I believe):

rx/ \w+ \:\: \w+ :: <!before \s*(> / # # ^^ important
This is basically your example with a small addition. The double colons pointed out above tell the engine not to backtrack once it reaches that point, so it will work this way where it wouldn't in Perl 5.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-08-18 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?