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


View this message in rfc822 format

From: Andreas Schwab <schwab <at> suse.de>
To: Michal Nazarewicz <mina86 <at> mina86.com>
Cc: 24020 <at> debbugs.gnu.org
Subject: bug#24020: [PATCHv2] Fix ‘[[:word:]]*\u2620’ failing to match ‘foo\u2620’ (bug#24020)
Date: Tue, 19 Jul 2016 10:00:46 +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

Did you mean "the longest match"?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




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

Previous Next


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