Re: EggRegex
- From: Marco Barisione <barisione gmail com>
- To: gtk-devel-list gnome org
- Subject: Re: EggRegex
- Date: Wed, 19 Jul 2006 22:19:26 +0200
Behdad Esfahbod wrote:
Last time I checked, PCRE's didn't use Unicode Character Database to
classify characters and so is a poor choice for a highlighting engine
and definitely suboptimal in GNOME.
It supports utf-8 and Unicode properties. Don't ask me more about this
because I know very little about Unicode :)
I believe GNOME
should use the GNU regexp engine.
It's slower and doesn't support some patterns supported by pcre.
PCRE benefits:
- it's faster
- has more advanced regular expressions
- supports partial matching (using the pattern ^ab against the string a
the match fails but pcre knows that there is a partial match so adding
more characters may lead to a match), see
http://www.barisione.org/eggregex/eggregex-eggregex.html#egg-regex-is-partial-match
- DFA matching (matching <.*> against <a><b><c> you get <a>, <a><b> and
<a><b><c>)
--
Marco Barisione
http://www.barisione.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]