Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrVGr-000152-7f for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Dec 2013 16:07:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VrVGq-0001ok-Mq for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Dec 2013 16:07:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrNrq-0004WC-Iy for pgsql-bugs@postgresql.org; Fri, 13 Dec 2013 08:13:02 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrNrm-0006hW-Rn for pgsql-bugs@postgresql.org; Fri, 13 Dec 2013 08:13:02 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrNrk-0005Mk-JW for pgsql-bugs@postgresql.org; Fri, 13 Dec 2013 08:12:58 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VrNrf-0001cE-4P for pgsql-bugs@postgresql.org; Fri, 13 Dec 2013 08:12:51 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8679: Error in regex function To: pgsql-bugs@postgresql.org From: spmpro@pochta.ru Message-Id: Date: Fri, 13 Dec 2013 08:12:51 +0000 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8679 Logged by: Andrzej Email address: spmpro@pochta.ru PostgreSQL version: 9.2.0 Operating system: Ubuntu Description: Hi, I make command select regexp_replace('rewqe ','(?<=[q]{1})[e]{1}(?=[\- $]+)','11'); and he return error 'invalid regular expression: quantifier operand invalid', but regex is correct (check by http://gskinner.com/RegExr/). This error repeat in another regex function (regexp_matches, regexp_split_to_array). But command select regexp_replace('rewqe ','[e]{1}(?=[\- $]+)','11') work good. May be, regex construction (?<=\pattern\) is not support? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs