$string =~ /$re1|$re2/ and ( $h, $m, $s ) = ...