|
From: | Eric Blake |
Subject: | Re: patsubst: multiline text |
Date: | Wed, 08 Sep 2010 10:10:27 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2 |
On 09/07/2010 03:20 PM, clemens fischer wrote:
BTW, I couldn't get non-greedy ".+?" or ".+\?" to work, this definitely deserves fixing, because at times "[^abc]+" doesn't cut it, eg. if a match for more than one character is needed.
M4 1.4.x only supports the glibc emacs flavor of regexp. M4 2.0 has improved regex support, allowing you to choose different flavors supported by glibc, such as strict posix, extended regex, and so forth, but still needs tweaking before it will support tunables like case-insensitivity.
And how about look-forward/look-behind, like in Perl/Python/PCRE?
M4 2.0 will allow modules, so it is conceivable that someone could add a PCRE module for a different regex engine. But the default will still be to provide only what glibc provides (even on non-glibc platforms, since gnulib's regex implementation mirrors glibc).
But, as has recently been noted on this list, M4 2.0 is a ways off (mainly due to lack of developer time).
-- Eric Blake address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |