From: Tom Lane <tgl@sss.pgh.pa.us>
To: Grzegorz Daniluk <gdaniluk@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5766: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char
Date: Wed, 24 Nov 2010 12:57:12 -0500
Message-ID: <27286.1290621432@sss.pgh.pa.us> (raw)
In-Reply-To: <201011241643.oAOGhhB5083127@wwwmaster.postgresql.org>
References: <201011241643.oAOGhhB5083127@wwwmaster.postgresql.org>
"Grzegorz Daniluk" <gdaniluk@gmail.com> writes:
> select regexp_replace('Foo Pasaż Bar', E'\\yPasaż\\y', '');
> Above query doesn't replace the word 'Pasaż'. It returns full 'Foo Pasaż
> Bar' string, when the correct behavior is to return 'Foo Bar'.
Is this problem limited to \y, or do other regex operations that depend
on locale-specific character classification also not work for you?
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, gdaniluk@gmail.com
Subject: Re: BUG #5766: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char
In-Reply-To: <27286.1290621432@sss.pgh.pa.us>
References: <201011241643.oAOGhhB5083127@wwwmaster.postgresql.org> <27286.1290621432@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