From: David Corbin Date: 2002-02-08T10:38:08+09:00 Subject: Re: unexpected error: Hal E. Fulton wrote: >----- Original Message ----- >From: "Alan Chen" >To: "ruby-talk ML" >Sent: Thursday, February 07, 2002 6:14 PM >Subject: Re: unexpected error: > > >>On Fri, Feb 08, 2002 at 08:55:18AM +0900, David Corbin wrote: >> >>>I'm getting the following runtime error: >>> >>>unexpected error: invalid regular expression; empty character class: >>> >/[]/ > >>>Is there anyway to find out where in the source this is happening? >>> >>This does seem like a nonsensical regexp to me. Just for my curiosity, >> >what would it match? > >I thought he was saying he wasn't using any such >regular expression, that it was just giving him this >error and bombing. > >David: >1. Does it report a line number at all? > No > >2. Are you modifying any of the special >global variables? > No > >3. How long is the source? > 168 lines. > >Hal Fulton > I use a few regular expressions. I added one recently that *might* be the suspect, but it doesn't use character classes ([]). It is, however, "dynamic". > >