From: matz@... (Yukihiro Matsumoto) Date: 2003-03-29T09:33:34+09:00 Subject: Re: new 1.8-snapshot regex warning Hi, In message "new 1.8-snapshot regex warning" on 03/03/29, Brad Hilton writes: |get warnings from the following code: | |regex = /[a-zA-Z_-]/ | |warning: character class has `-' without escape | |This syntax is allowable in perl, and has been fine in ruby until very |recently. I just wanted to point it out in case the change was |accidental. It's not accidental. See ruby-dev summary next week. But I now think it may be better to allow "-" at top or bottom of character classes. matz.