Re: regex [X-Z] with non-ascii char returns different results from (X|Y|Z)

Subject: Re: regex [X-Z] with non-ascii char returns different results from (X|Y|Z)

Date: Wed, 21 Aug 2019 11:38:07 -0300

To: yury.t, notmuch@notmuchmail.org

Cc:

From: David Bremner


"yury.t" <tptlab@tuta.io> writes:

> Some regular expression returns incorrect results if the pattern
> contains multibyte characters in square brackets.  The following
> bracket expression matches subjects not starting with `[1-9]` and
> returns more results than the parenthesis expression.

We rely on POSIX.2 regex functions (regcomp, regexec). I would be
interested to know if the searches you are interested in work in a
standalone C program using regcomp and regexec.

d


_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: