string.scan(/regex/)
also see
http://stackoverflow.com/questions/80357/ruby-match-all-occurrences-of-a-regex
and then
http://efreedom.com/Question/1-1444778/Function-Like-Stringscan-Returning-Array-MatchDatas
or do
grep -r "\\\\d" *
according to
http://gimbo.org.uk/blog/2008/01/23/the-great-escape/
also see a list of Regex Samples
http://www.rubyist.net/~slagell/ruby/regexp.html
more regular expressions:
http://www.tutorialspoint.com/ruby/ruby_regular_expressions.htm