Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vip5m-0006RG-GR for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Nov 2013 17:28:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vip5k-0001vt-RZ for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Nov 2013 17:28:00 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViizN-0006Nz-By for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 10:57:01 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViizL-0002JC-2g for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 10:57:00 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViizK-0000Fo-HF for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 10:56:58 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1ViizF-0004K5-5f for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 10:56:53 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8605: Regular expression lazy quantification issue To: pgsql-bugs@postgresql.org From: atoriwork@gmail.com Message-Id: Date: Tue, 19 Nov 2013 10:56:53 +0000 X-Pg-Spam-Score: 0.4 (/) 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: 8605 Logged by: Atori Email address: atoriwork@gmail.com PostgreSQL version: 9.2.4 Operating system: Debian 4.7.2-5, 64-bit Description: Lazy quantificators does't work after "or" block in regexp mask ('(a)|(b)'): example: string: 'CsssQsDpppppQsDpppQ' mask: '((a)|(C.+?Q))s(D.+?Q)' select regexp_replace('CsssQsDpppppQsDpppQ', '((C.+?Q))s(D.+?Q)', '#foo#'); result: "#foo#sDpppQ" select regexp_replace('CsssQsDpppppQsDpppQ', '((a)|(C.+?Q))s(D.+?Q)', '#foo#'); result: "#foo#" expected result: "#foo#sDpppQ" -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs