See perlre for more details.my $text = "my dog is green"; my $count = ( $text =~ /g/g ); # $count is 2
In reply to Re: how to get the number of times a pattern matched
by Masem
in thread how to get the number of times a pattern matched
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |