gnu-regexp-users
[Top][All Lists]
Advanced

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

Re: [Regexp] Re: referring to subexpressions using metachars


From: Wes Biggs
Subject: Re: [Regexp] Re: referring to subexpressions using metachars
Date: Mon, 21 Oct 2002 10:38:08 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826

Murali (Muralidharan) Narayanan wrote:
Hello

I have a situation where I need to refer to the subexpressions that get substituted after a match was done. I used the substituteInto method of REMatch class to accomplish it. However for subexpressions greater that 9 I am unable to refer to them. In other words, tokens are usable only from $0 through $9. $0 matches the full substring matched; $n matches subexpression number n.

But when n > 9 I am unable to get the matched subexpression.

I think someone sent a patch for this to the list at some point, but I've been out of the loop and I don't remember if it was checked in to CVS. You might check the latest CVS version from savannah.gnu.org and see if it has been changed to support $10, $11, etc.

Wes





reply via email to

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