|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#23676: closed (Seems egrep violates simple rules of regexps) |
Date: | Wed, 01 Jun 2016 19:48:01 +0000 |
Your message dated Wed, 1 Jun 2016 12:47:41 -0700 with message-id <address@hidden> and subject line Re: bug#23676: Seems egrep violates simple rules of regexps has caused the debbugs.gnu.org bug report #23676, regarding Seems egrep violates simple rules of regexps to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 23676: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23676 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Seems egrep violates simple rules of regexps Date: Thu, 2 Jun 2016 00:33:54 +0500 Example: $ echo qwerty | egrep -o 'we|wert' wert $ echo qwerty | egrep -o 'wert|we' wert The same in Javascript: /we|wert/.exec('qwerty') ["we"] /wert|we/.exec('qwerty') ["wert"] http://stackoverflow.com/questions/2394931/regex-is-behaving-lazy-should-be-greedy $ egrep --version grep (GNU grep) 2.25 -- Segmentation fault
--- End Message ---
--- Begin Message ---Subject: Re: bug#23676: Seems egrep violates simple rules of regexps Date: Wed, 1 Jun 2016 12:47:41 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 On 06/01/2016 12:33 PM, Марк Коренберг wrote:Example: $ echo qwerty | egrep -o 'we|wert' wert $ echo qwerty | egrep -o 'wert|we' wertThat's not a bug; it's a feature. See, for example: https://swtch.com/~rsc/regexp/regexp1.html
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |