Skip to content

Instantly share code, notes, and snippets.

@brainopia
Created December 10, 2011 18:37
Show Gist options
  • Save brainopia/09dde5d5b1ba475e3a25 to your computer and use it in GitHub Desktop.
Save brainopia/09dde5d5b1ba475e3a25 to your computer and use it in GitHub Desktop.
pry(main)> foo = 'woooord'
=> "woooord"
pry(main)> bar = /\G./
=> /\G./
pry(main)> foo =~ bar
=> 0
pry(main)> foo =~ bar
=> 0 # => it should have been 1, no?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment