On 6/1/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
Sorry if I've got brain lock on this, but is it possible to match a
substring like
match wildmenu ;\(directory\)\{3,};
such that it will match three or more substring chars of the pattern
to match "dir" as well as "directory"? (I know the above format isn't
this.) I know I could do it if I could use an expression, but syntax
highlighting doesn't allow that, so I'm wondering if I can do it with
regex alone.
Enclose "ectory" in another group that matches zero or one times. The
"\v" enables "very magic" mode, and the "%()" construct causes the
group to not be counted as a sub-expression:
\v(dir%(ectory)?)