> both of them yield a
> 
> regexp: malformed `[]'
> 
> error.
> I forgot to mention and I had an alternative solution from the
> beginning /stat[abc]?([ ;]|-)/
> I'm just wondering the reason the original version failed.

As I recall, if you're going to include a hyphen in a character
class, it has to be the first character so that it isn't taken to
indicate a range.

BLS


Reply via email to