public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 2.0.0dev (2012-12-08 trunk 38268) [x86_64-darwin12.2.1]"
irb(main):002:0> /(?i:[\W])/.match 's'
=> #<MatchData "s">
irb(main):003:0> /(?i:[\w])/.match 's'
=> #<MatchData "s">
irb(main):004:0> /(?i:\W)/.match 's'
=> nil
irb(main):005:0> /(?i:\w)/.match 's'
=> #<MatchData "s">
irb(main):006:0> /[\W]/.match 's'
=> nil
irb(main):007:0> /[\w]/.match 's'
=> #<MatchData "s">
irb(main):008:0> /(?i:[\W])/.match 'r'
=> nil
irb(main):009:0> /(?i:[\w])/.match 'r'
=> #<MatchData "r">
irb(main):010:0> /(?i:[\W])/.match 't'
=> nil
irb(main):011:0> /(?i:[\w])/.match 't'
=> #<MatchData "t">

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.