bug-gnulib
[Top][All Lists]
Advanced

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

Re: regex documentation


From: Reuben Thomas
Subject: Re: regex documentation
Date: Wed, 11 May 2022 22:22:21 +0100

On Wed, 11 May 2022 at 21:49, Paul Eggert <eggert@cs.ucla.edu> wrote:
On 5/11/22 11:09, Reuben Thomas wrote:
> Sorry, I don't follow. The concrete example given is: \Sw matches any
> character that is
> not word-constituent. That seems to be [^[:alnum:]]?

In glibc regex, \Sw matches a nonspace followed by a 'w'. That is, it is
equivalent to [^[:space:]]w and it has a different meaning from the
decommissioned GNU regex meaning.

Ah, got it now!

I'm assuming that the goal of gnulib/doc/regex.texi is to document the
regular _expression_ syntax implemented by glibc, grep, etc. Does that
match your assumption.

Yes. I'll revise the patch.

--
https://rrt.sc3d.org

reply via email to

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