Ruby, regex and match
Tuesday, January 30th, 2007I’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!
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!