bug-ed
[Top][All Lists]
Advanced

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

Re: [PATCH] ed with perl-compatible regular expressions


From: Shawn Wagner
Subject: Re: [PATCH] ed with perl-compatible regular expressions
Date: Thu, 22 Jul 2021 14:11:38 -0700

Take 2, based on Martin's feedback. Now uses the locale to determine
if you're working with UTF-8 or not (using the same logic as GNU
grep's -P) instead of an explicit option.

On Wed, Jul 21, 2021 at 8:09 PM Shawn Wagner <shawnw.mobile@gmail.com> wrote:
>
> One of the options I mentioned in a prior email about getting
> case-insensitive REs in ed was to support a more sophisticated flavor
> of regular expression. This is the fruit of that idea.
>
> The attached patch (Made against 1.18-pre2) adds a -P option to use
> PCRE2 regular expressions. Passing --disable-pcre2 to the configure
> script will leave this feature out. There's also a --utf8 option that
> turns on PCRE2's advanced Unicode matching.
>
> It also adds some tests for ed -E and ed -P, and mentions both in the
> regular expression section of the texi documentation.

Attachment: pcre2_v2.patch
Description: Binary data


reply via email to

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