On Tue, Apr 08, 2003 at 11:44:54AM +0900, Yukihiro Matsumoto wrote:
> It does (and will) works so in Ruby too.  The dash in the character
> class here is not confusing.  Remember examples in [ruby-talk:68760]:

According to that post:

"2) A literal '-' in a character class should be escaped too if the
    class has other '-' literals for range representation.
...
   You can use '-' without '\' if the class has no ranges, like
   /[-abc]/ or /[^-]/."

But it didn't say that a literal '-' could b used without '-' at the start
or end of a character class, e.g. /[a-z-]/

If you are going to allow that (without a warning) then I am happy :-)

Regards,

Brian.