in reply to Counting in regular expressions

Thank you for the replies. It was all helpful.