in reply to How can I access the number of repititions in a regex?


Also, see the perlretut tutorial on regular expressions and search for this
This example counts character frequencies in a line:
  • Comment on Re: How can I access the number of repititions in a regex?