Subject: bug#5970: regex won't do lazy matching

From: Linda Walsh <[email-masked]>
Date: Sun, 02 May 2010 23:21:17 -0700

Andreas Schwab wrote:
> a g <[email-masked]> writes:
> 
>>   regex_test "a[^x]*?a" "a1a2a"
> 
> <http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04_06>:
> 
>  9.4.6 EREs Matching Multiple Characters
>    [...]
>    The behavior of multiple adjacent duplication symbols ('+', '*', '?',
>    and intervals) produces undefined results.
> 
> Andreas.
---

Sorry, late to conversation, but reading email.

There was a time in QA that "undefined results" and bug was synonymous.

That a spec would say that is lame.

Personally, I think if it isn't compatible with the Perl Regex, it's
a bug, but that's purely informed personal bias.  :-)

-l