maybe I'm using a buggy version of acme, because /stat[abc]?[- ;]/ also fails with a "malformed" error. And according to the regexp(7) man page, you should be able to precede a '-' with a backslash.
2010/7/13 <blstu...@bellsouth.net>: >> 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 > > > -- Hugo