if ($tag =~ /^5(0|3)[0-2]$/) # Note the parentheses ( ) are optional