[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature request: plain option for gsub
- From: Jonas Thiem <jonasthiem@...>
- Date: Sat, 23 Aug 2014 07:16:03 +0200
If it is, then it should be added to this manual section:
http://www.lua.org/manual/5.2/manual.html#6.4 in the subsection for
gsub.
People shouldn't search the mailing list, some programming in lua book
or learn patterns in depth enough to come up with this on their own
just for a simple replace without patterns IMHO.
Or instead just a nicely documented plain option. I don't care about
which of the two actually, but it should be something in the reference
manual which is easily found by people looking for it.
The code contest done here on the mailing list is nice and all, but
not necessarily what people should be getting themselves into when
looking for a simple replace().
On Thu, Aug 21, 2014 at 11:38 PM, Petite Abeille
<petite.abeille@gmail.com> wrote:
>
> On Aug 21, 2014, at 8:40 PM, Jonas Thiem <jonasthiem@googlemail.com> wrote:
>
>> This isn't C, folks.
>
> And yet, you vehemently refuse to even consider that, in fact, this humble %p pattern may very well be the answer to you original question and instead insist on some dubious Rube Goldberg concoctions. Go figure. Oh, well… to each their own I guess.
>
>
- References:
- Feature request: plain option for gsub, Jonas Thiem
- Re: Feature request: plain option for gsub, Petite Abeille
- Re: Feature request: plain option for gsub, Shmuel Zeigerman
- Re: Feature request: plain option for gsub, Jonas Thiem
- Re: Feature request: plain option for gsub, Roberto Ierusalimschy
- Re: Feature request: plain option for gsub, Jonas Thiem
- Re: Feature request: plain option for gsub, Jonas Thiem
- Re: Feature request: plain option for gsub, Petite Abeille
- Re: Feature request: plain option for gsub, Jonas Thiem
- Re: Feature request: plain option for gsub, Petite Abeille