nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] Re: Subexpression replacement.


From: Chris Allegretta
Subject: [Nano-devel] Re: Subexpression replacement.
Date: Sat, 25 Jan 2003 20:47:36 -0800
User-agent: Mutt/1.2.5.1i

On Sat, Jan 25, 2003 at 11:06:25PM -0500, David Benbennick wrote:
> This patch replaces utils.c:strstrwrapper() and fixes
> search.c:replace_regexp() so that subexpression regexp replacement works. 
> For example, make a file with the line
> 
>  lookatthis
> 
> and put the cursor at the beginning of the line (a space).  Regexp
> search for "(look)(at)(this)", and replace with "\3\2\1".  It should
> produce the line
> 
>  thisatlook
> 
> Instead you get
> 
>  tthika loo

Credited and committed.  Thank you for this patch, for all of them
actually, this one looks like a particularly nasty bug to nail down.

Chris A
-- 
Chris Allegretta        http://www.asty.org

"Share and Enjoy" - Douglas Adams, 1952 - 2001




reply via email to

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