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.mob...@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.
pcre2_v2.patch
Description: Binary data