Is this correct for 1.8.0?
irb(main):008:0> r2 = /[([^]]+)]/
=> /[([^]]+)]/
irb(main):009:0> r = /[([^]]+)]/
(irb):9: warning: character class has `]’ without escape
=> /[([^]]+)]/
I thought the first character after [^ could be a ']'
without escaping it.
···
–
Jim Freeze