Skip to content

Instantly share code, notes, and snippets.

@danp
Created October 9, 2008 14:52
Show Gist options
  • Save danp/15791 to your computer and use it in GitHub Desktop.
Save danp/15791 to your computer and use it in GitHub Desktop.
>> s = "what about for aaaa {{ foo }} dasdfsa {{ bar }} adfdfasf"
=> "what about for aaaa {{ foo }} dasdfsa {{ bar }} adfdfasf"
>> s.scan(/\{\{(.*?)\}\}/)
=> [[" foo "], [" bar "]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment