Is there a simple way to know how many times a regex matches.
Say for example:

$string =~ /a/g; # match on all 'a' in $string

Now how do I know how many times it actually matched?

-Bob

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to