pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: atoriwork@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8605: Regular expression lazy quantification issue
Date: Tue, 19 Nov 2013 10:56:53 +0000
Message-ID: <E1ViizF-0004K5-5f@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)  latest in thread

Message-ID: <E1ViizF-0004K5-5f@wrigleys.postgresql.org>
Permalink:  ../E1ViizF-0004K5-5f@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1ViizF-0004K5-5f@wrigleys.postgresql.org

 · 

reply

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: atoriwork@gmail.com
  Subject: Re: BUG #8605: Regular expression lazy quantification issue
  In-Reply-To: <E1ViizF-0004K5-5f@wrigleys.postgresql.org>
  References: <E1ViizF-0004K5-5f@wrigleys.postgresql.org>

* 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