From: Kevin Howe Date: 2004-08-18T03:45:58+09:00 Subject: multiple regexp matches I want to get multiple results of a regexp pattern match, offsets included. The following code gets the proper results, but does not return offsets: str = ' ... ' re = Regexp.new('(<(\/?)span>)', true) # match start or end tag print str.scan(re).inspect The Regexp module will return offsets, but Regexp::match only returns the first match, so I'm not sure how to get the full list of matches?