From: David Heinemeier Hansson Date: 2003-09-19T22:26:57+09:00 Subject: Ruby version of preg_match_all? I'm having a hard time finding a way of archiving the functionality of PHP's preg_match_all[1] in Ruby. Am I just not looking in the right places? I have a string like "SomethingCool SomethingWild Something AnotherCool" and want to use a regular expression, like /(\w+Cool)/, to get all the *Cool words back in an array (["SomethingCool", "AnotherCool"]). [1] http://dk2.php.net/preg_match_all / David