S
Simon Strandgaard
irb(main):001:0> re = /bx{,2}c/
=> /bx{,2}c/
irb(main):002:0> re.match("abxcd")
=> nil
irb(main):003:0> re = /bx{0,2}c/
=> /bx{0,2}c/
irb(main):004:0> re.match("abxcd")
=> #<MatchData:0x81c46d0>
irb(main):005:0>
Is {,2} notation supported ?
If not.. shouldn't it raise an exception ?
=> /bx{,2}c/
irb(main):002:0> re.match("abxcd")
=> nil
irb(main):003:0> re = /bx{0,2}c/
=> /bx{0,2}c/
irb(main):004:0> re.match("abxcd")
=> #<MatchData:0x81c46d0>
irb(main):005:0>
Is {,2} notation supported ?
If not.. shouldn't it raise an exception ?