BUG #8605: Regular expression lazy quantification issue

From: atoriwork(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8605: Regular expression lazy quantification issue
Date: 2013-11-19 10:56:53
Message-ID: E1ViizF-0004K5-5f@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 8605
Logged by: Atori
Email address: atoriwork(at)gmail(dot)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"

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2013-11-19 12:08:39 Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist
Previous Message Dean Rasheed 2013-11-19 08:53:04 Re: Re: [BUGS] BUG #7873: pg_restore --clean tries to drop tables that don't exist