From: Sebastian Hungerecker Date: 2007-08-04T04:03:10+09:00 Subject: Re: How to find out the number of pattern matched? Li Chen wrote: > I search a pattern in a string. How do I know how many times the pattern > is found/matched? string.scan(pattern).length HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826