From: Li Chen Date: 2007-08-04T03:47:25+09:00 Subject: How to find out the number of pattern matched? Hi all, I search a pattern in a string. How do I know how many times the pattern is found/matched? Thanks, Li -- Posted via http://www.ruby-forum.com/.