develooper Front page | perl.perl6.language | Postings from June 2002

lex behavior

Thread Next
From:
Luke Palmer
Date:
June 13, 2002 12:57
Subject:
lex behavior
Message ID:
Pine.LNX.4.33.0206131352001.22687-100000@babylonia.flatirons.org

I'm still unclear as to how you implement lex-like longest token rule with 
P6 regexes.  If the | operator grabs the first one it matches, how do I 
match "bacamus" out of this?:

	"bacamus" =~ / b.*a | b.*s /


Luke


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About