From: Jim Freeze Date: 2003-04-25T02:51:06+09:00 Subject: Regexp behavior with character class 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