my $count =()= /$regex/g #### my ($match) = ($string =~ m/regex/);