Re: Feature request: plain option for gsub
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Feature request: plain option for gsub
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2014年8月22日 16:19:07 -0300
> Okay, I revert, "$$" in the replacement string gets replaced by "$" so its
> not literal.
> s.split("search").join("replacement") work literally tough.
So, 'replace' have some surprises for the unaware, but of course the
language offers other mechanisms (non obvious for the unaware) to work
around that. Just like Lua :-)
-- Roberto