Skip to content

Instantly share code, notes, and snippets.

@jcsalterego
Created July 29, 2011 16:29
Show Gist options
  • Select an option

  • Save jcsalterego/1114175 to your computer and use it in GitHub Desktop.

Select an option

Save jcsalterego/1114175 to your computer and use it in GitHub Desktop.
$ irb
>> VERSION
=> "1.8.7"
>> /\//
=> /\//
>> Regexp.new('/')
=> /\//
>> Regexp.new('\/')
=> /\//
>> Regexp.new('/') == Regexp.new('\/')
=> false
>> /\// == Regexp.new('/')
=> false
>> /\// == Regexp.new('\/')
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment