my $str = "ARKL---MNRD--SET"; print "$str [- count]: ", $str =~ tr/-//, $/; __output__ ARKL---MNRD--SET [- count]: 5
_________
broquaint
In reply to Re: counting regex hits
by broquaint
in thread counting regex hits
by Becky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |