From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Joel Jacobson <joel@compiler.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Bizarre behavior of \w in a regular expression bracket construct
Date: Wed, 24 Feb 2021 12:11:51 -0500
Message-ID: <4099574.1614186711@sss.pgh.pa.us> (raw)
In-Reply-To: <20210224164749.GA10596@alvherre.pgsql>
References: <20210224164749.GA10596@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2021-Feb-23, Tom Lane wrote:
>> * Create infrastructure to allow treating \w as a character class
>> in its own right. (I did not expose [[:word:]] as a class name,
>> though it would be a little more symmetric to do so; should we?)
> Apparently [:word:] is a GNU extension (or at least a "bash-specific
> character class"[1] but apparently Emacs also supports it?); all the
> others are mandated by POSIX[2].
> I think it'd be fine to expose [:word:] ...
Yeah, I'd independently come to the same conclusion. This GNU precedent
offers even more basis for that, though.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, joel@compiler.org
Subject: Re: Bizarre behavior of \w in a regular expression bracket construct
In-Reply-To: <4099574.1614186711@sss.pgh.pa.us>
References: <20210224164749.GA10596@alvherre.pgsql> <4099574.1614186711@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox