> >$string =~ /a/g; # match on all 'a' in $string > >Now how do I know how many times it actually matched? Try: $result = $string =~ /a/g; The value will be in $result Carl
- counting regex matches Bob Mangold
- Re: counting regex matches Carl Rogers
- Re: counting regex matches Michael Fowler
- RE: counting regex matches Wagner-David
- Re: counting regex matches Sean O'Leary
- Re: counting regex matches Sean O'Leary