# Grouping # () delimit capturing groups if "zipcode: 54935" ~~ m/ \w+ ':' \s (\d+)/ { say "zipcode is $0"; } # [] delimit non-capturing groups my $team = 'BrewersPackers'; if $team ~~ m/[Packers|Brewers]+/ { # recall: longest token match say "Matched '$/'"; }