Skip to content

Instantly share code, notes, and snippets.

@wilson
Created May 26, 2010 20:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wilson/414974 to your computer and use it in GitHub Desktop.
text = "the quick brown fox jumped over the lazy dog"
text.scan(/(\w) /) do
p Regexp.last_match
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment