Re: Comprehending string.gsub
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Comprehending string.gsub
- From: Peter Cawley <lua@...>
- Date: 2012年4月13日 16:11:08 +0100
On Fri, Apr 13, 2012 at 4:07 PM, Robert Virding
<robert.virding@erlang-solutions.com> wrote:
> But isn't that what %0 is for.
Yes, but %0 is only available for string replacements. %1 is
synthesized to be the entire match for all types of replacements, as
this is convenient for all non-string replacements.