From: Nikolai Weibull Date: 2003-11-27T04:34:54+09:00 Subject: Re: gnu-regexp should raise? * Simon Strandgaard [Nov, 26 2003 20:10]: > Why does /[]]/ not raise an exception, when /[]/ does ? well, it is standard to allow having ] as the first character in a [] character class definition, as the empty character class is usually illegal. it is, however, not very obvious and so Ruby complains (with a warning) if it sees one. I'd say that you should go the Perl6 way and remove character classes defined in this way from you regex library. That's what I'm going to do. nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}