my $pattern = "foo|bar"; say "Match" if $str =~ $pattern; [download]
In reply to Re^4: Regex help needed by BillKSmith in thread Regex help needed by ghosh123