@anonymous/

RubberyIdioticDegu

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
6
7
r1 = '/.{9}/'
r2 = '/^.{06}$/'

p r1 =~ /^.{06}$/ #0:   r2 matches r1
p r2 =~ /.{9}/    #0:   r1 matches r2
p r1 =~ /.{9}/    #nil: r1 doesn't match r1
p r2 =~ /^.{06}$/ #nil: r2 doesn't match r2
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]