Re: BUG #5766: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Grzegorz Daniluk" <gdaniluk(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5766: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char
Date: 2010-11-24 17:57:12
Message-ID: 27286.1290621432@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Grzegorz Daniluk" <gdaniluk(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Darryl Pye 2010-11-25 04:28:51 BUG #5767: Memory Leak
Previous Message Grzegorz Daniluk 2010-11-24 16:43:43 BUG #5766: regexp \y doesn't work properly when a word starts on ends with a UTF-8 char