http://www.perlmonks.org?node_id=1046281


in reply to Regex Help!

Look for the pattern /g - globally. Match in a loop. Count the occurences.


I'm too lazy to be proud of being impatient.