> I wasn't searching, but using it with acme's x command. > > > if you are doing a b3 search, you want > > > > :/stat[abc]?[ ;\-]/ > > > > just the leading : is missing.
this works for me on a buffer of "stat-\n\n\n\n" (where \ns are newlines): Edit ,x/stat[abc]?[ ;\-]/p > 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. from regexp(6) [...] In s {as in [s-s]}, the metacharacters `-', `]', an initial `^', and the regular expression delimiter must be preceded by a `\'; other metacharacters have no spe- cial meaning and may appear unescaped. > 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. no, the correct version is /stat[abc]?[\- ;]/ - erik