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!
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!
Posted in AAA, Ruby, String, match, next match, regex, regexp, scan | Comments
Life is grand is proudly powered by
WordPress
Entries (RSS)
and Comments (RSS).