To allow further extension of the regexes Any other non-alnum character must be escaped:
examples/regex2/escape_characters.p6use v6; my $phone = "054-1234567"; if $phone ~~ m/ \d \- \d / { say "There are two numbers and a hyphen"; } # or put in quotes: if $phone ~~ m/ \d '-' \d / { say "Still two numbers and a hypen"; }