m- # match ^(\w|\d)+ # at least one digit or number at the start of a string /pin # followed by the string "/pin" \d{5} # followed by 5 digits -x # ignore whitespace (and comments)