[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‐
sions.
We could add something that allows the meta characters to change (calling
it "extended" doesn't seem right for various reasons). Perhaps something
like
:set meta-magic='<>'
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature
- [vile] Extended regexp, Marc Simpson, 2016/05/11
- Re: [vile] Extended regexp,
Thomas Dickey <=
- Re: [vile] Extended regexp, Marc Simpson, 2016/05/11
- Re: [vile] Extended regexp, Thomas Dickey, 2016/05/12
- Re: [vile] Extended regexp, Marc Simpson, 2016/05/12
- Re: [vile] Extended regexp, Thomas Dickey, 2016/05/12
- Re: [vile] Extended regexp, Marc Simpson, 2016/05/19
- Re: [vile] Extended regexp, Thomas Dickey, 2016/05/21
- Re: [vile] Extended regexp, Marc Simpson, 2016/05/26