GNU bug report logs - #24020
[PATCH] Fix ‘[[:word:]]*\u2620’ failing to match ‘foo\u2620’

Previous Next

Package: emacs;

Reported by: Michal Nazarewicz <mina86 <at> mina86.com>

Date: Mon, 18 Jul 2016 14:06:01 UTC

Severity: normal

Tags: patch

Done: Michal Nazarewicz <mina86 <at> mina86.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 24020 <at> debbugs.gnu.org (full text, mbox):

From: Michal Nazarewicz <mina86 <at> mina86.com>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 24020 <at> debbugs.gnu.org
Subject: Re: bug#24020: [PATCHv2] Fix ‘[[:word:]]*\u2620’ failing to match ‘foo\u2620’ (bug#24020)
Date: Wed, 20 Jul 2016 14:36:39 +0200
> Michal Nazarewicz <mina86 <at> mina86.com> writes:
>> For example, take regular expression ‘[[:alpha:]]*1’ trying to match
>> a string ‘foo’.  Since the Kleene star is greedy, the engine will test
>> the shortest match for ‘[[:alpha:]]*’ which is ‘foo’.  At this point

On Tue, Jul 19 2016, Andreas Schwab wrote:
> Did you mean "the longest match"?

Yep, thanks for spotting this.

-- 
Best regards
ミハウ “𝓶𝓲𝓷𝓪86” ナザレヴイツ
«If at first you don’t succeed, give up skydiving»




This bug report was last modified 8 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.