[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: string.gsub - possible enhancement
- From: Shmuel Zeigerman <shmuz@...>
- Date: Tue, 04 Apr 2006 12:32:18 +0200
Mark Edgar wrote:
For an arbitrarily complicated pattern, this function will do what you
Thanks for the excellent code which I intend to make use of. Your
solution is in fact more generic than that I was proposing. But still,
it'd be nice to have this functionality "out of the box".
Yet another thing that I miss in string.gsub is the ability to break the
process after arbitrary match (when the `repl' function returns some
dedicated value that means "no further replaces are needed").