[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: string.gsub (Lua 5.1.1)
- From: George Petsagourakis <petsagouris@...>
- Date: Mon, 6 Nov 2006 20:02:03 +0000 (UTC)
Philippe Lhoste <PhiLho <at> GMX.net> writes:
> > Not at all... six (6) substitutions done.. thats all.
> > Thats what the dot do in Lua's regular expressions.
> > Try %d for numbers or %a for letters.
> No, 6 matches, but only 3 substitutions, the first three chars make the
> function return nil, so there is no substitution.
You are right... 6 matches,.. 3 subs... :)