$zip = '34'; if($zip =~ /\b$re\b/o) { print "Got a match for $zip\n"; }