m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp() nth parameterized subexpression


From: Eric Blake
Subject: Re: regexp() nth parameterized subexpression
Date: Sat, 30 Aug 2008 13:32:44 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jack Woehr on 8/29/2008 11:39 AM:
> Got into trouble with regexp .. `\1' thru `\9' work, but `\10' does not.
> Syntax
> mistake on my part, or regexp limitation to 9 parenthesized subexpressions?

Documented limitation in the current implementation.
http://www.gnu.org/software/m4/manual/m4.html#Regexp

> 
> Tips? Yeah, I know, I should break it down a little more ...

How much do people want extended behavior?  Perhaps we could make \10 give
a warning in m4 1.6 that syntax will be changing, so that in m4 2.0 it
gives the tenth () rather than the first () followed by literal 0.  But
that would still be quite a wait.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki5oFwACgkQ84KuGfSFAYAPggCgjeWRVL3vAHwqTlbQvNEf4I8+
2xoAn2+LQVrRrUzFjUlAun0LfNu2KElR
=mzs2
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]