[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Extended regexp

From: Thomas Dickey
Subject: Re: [vile] Extended regexp
Date: Wed, 11 May 2016 20:38:52 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, May 11, 2016 at 04:10:36PM -0700, Marc Simpson wrote:
> An `extended' mode/option (as in nvi), providing extended regexp
> syntax, would be useful. For now, I've replaced
>   #define MAGICMETA   "?+()<>{}|"
> with
>   #define MAGICMETA   "<>"
> in regexp.c—good enough for me.

hmm - so nvi does

        :set extended

which I hadn't noticed (manpage shows this):

       extended [off]
              Regular  expressions are extended (i.e.  egrep(1)-style) expres‐

We could add something that allows the meta characters to change (calling
it "extended" doesn't seem right for various reasons).  Perhaps something

        :set meta-magic='<>'

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]