Skip to content
  • 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment