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
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