Mega Code Archive

 
Categories / Ruby / String
 

Scan (ww)

"This is a test".scan(/\w\w/) { |x| puts x }