Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BBAC21337B50 for ; Wed, 24 Nov 2010 13:57:21 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34617-06 for ; Wed, 24 Nov 2010 17:57:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5642A1337B39 for ; Wed, 24 Nov 2010 13:57:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAOHvC4g027287; Wed, 24 Nov 2010 12:57:13 -0500 (EST) To: "Grzegorz Daniluk" 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 In-reply-to: <201011241643.oAOGhhB5083127@wwwmaster.postgresql.org> References: <201011241643.oAOGhhB5083127@wwwmaster.postgresql.org> Comments: In-reply-to "Grzegorz Daniluk" message dated "Wed, 24 Nov 2010 16:43:43 +0000" Date: Wed, 24 Nov 2010 12:57:12 -0500 Message-ID: <27286.1290621432@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/157 X-Sequence-Number: 28737 "Grzegorz Daniluk" 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