-
my token addnum { \d+ }; my token predir { [SW | S | SE | E | W | NW | NE | N] } my regex street { [\w|\d]+ [\s+ [\w|\d]+]* } my token lstname { :i [ST|BLVD|DR|CT|PASS|ALY|WAY|LOOP|MEWS|PL|MTN|RDG|HWY|LN|RD|AVE|HTS|CIR|TER|TRL] }; say "821 NW Wall ST" ~~ /^ <addnum> \s+ <predir>? \s+ <street>? \s+ <lstname>? /; say "61615 Athletic Club Dr" ~~ /^ <addnum> [\s+ <predir>]? [\s+ <street>]? [\s+ <lstname>]? /;
Edited by Elizabeth Mattijsen
Please register or sign in to comment