From: Dave Thomas Date: 2000-12-07T14:23:23+09:00 Subject: [ruby-talk:6877] Re: Equivalent to Perl's /g and pos()? "Ben Tilly" writes: > Well everything in it is going to be fairly easy to translate > except the ability to loop over matches of an RE. Would String#scan do what you want (sorry, but I gave up reading through all the code on the page you referenced)? "the cat in the hat".scan(/.[aeiou]./) do |match| puts match end he cat in he hat http://www.rubycentral.com/ref/ref_c_string.html#scan Dave