From: James Edward Gray II Date: 2005-02-12T05:06:25+09:00 Subject: Re: Currency formatting with regexp On Feb 11, 2005, at 1:46 PM, Jim Van Fleet wrote: > It sure did, and cut my LOC count in half. Good news. > What does \1 signify, exactly? Is this the active matched section of > the source string at the time? In a replacement string, \N is equivalent to Perl's $N variables. Outside a replacement string, you can $N variables directly. You can also use them in the block form of gsub(). Hope that clears it up. James Edward Gray II