Archive for the ‘next match’ Category

Ruby, regex and match

Tuesday, January 30th, 2007

I’ve just spent two hours trying to figure out how to get the next match from a string using regex in Ruby. I then found out about the scan method. Doh!