Re: Bizarre behavior of \w in a regular expression bracket construct
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Joel Jacobson" <joel@compiler.org>
Cc: "Alvaro Herrera" <alvherre@alvh.no-ip.org>,
pgsql-hackers@lists.postgresql.org
Date: 2021-02-24T17:14:47Z
Lists: pgsql-hackers
Attachments
- 0001-rework-char-class-escapes-2.patch (text/x-diff) patch 0001
- 0002-DW-always-match-newline.patch (text/x-diff) patch 0002
I wrote: > I've also decided after reflection that the patch should indeed > create a named "word" character class. That's allowed per POSIX, > and it simplifies some aspects of the documentation, since we can > rely on referencing the class instead of repeating ourselves. > The attached 0001 v2 does that; it's otherwise the same as before. Sigh, this time with the attachments ... regards, tom lane
Commits
-
Doc: remove src/backend/regex/re_syntax.n.
- 301ed8812e3f 14.0 landed
-
Change regex \D and \W shorthands to always match newlines.
- 7dc13a0f0805 14.0 landed
-
Allow complemented character class escapes within regex brackets.
- 2a0af7fe460e 14.0 landed