On Wed, Feb 09, 2022 at 05:17:13PM -0500, Viktor Dukhovni 
<postfix-us...@dukhovni.org> wrote:

> > On 9 Feb 2022, at 5:15 pm, raf <post...@raf.org> wrote:
> > 
> > ... and turning on/off x just means
> > that space characters in the pattern are/aren't ignored. There
> > aren't any space characters there so it should be immaterial.
> 
> You're confusing the "x" flag of pcre_table(5) with the rather
> different "x" flag of regexp_table(5).
> 
> -- 
>       Viktor.

Thanks, but I'm not sure that that is material to this
issue. Even with regexp, x refers to "extended
expression syntax". The extensions differ between
regexp and pcre, but not to the extent that it would
lead to that syntax error in that pattern (as far as
I can see). If the extensions refer to posix extended
regex, they shouldn't be needed for the regex in questioni,
should they?

The error referred to the second capture/replacement
index being out of range, so it must have been happy
with the first capture. There were three captures in
that regex. Clearly, there must be something else that
I'm missing.

cheers,
raf

Reply via email to