[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A bug in pattern matching ??
- From: Patrick Donnelly <batrick@...>
- Date: Sun, 27 Dec 2009 00:20:49 -0700
On Sun, Dec 27, 2009 at 12:13 AM, goafteru <firstname.lastname@example.org> wrote:
> print ( string.gsub("abc", "%w*", "@") )
> and the result is:
> @@ 2
> rather than:
> @ 1
%w* can match the empty string, which it does after abc matches.
"Let all men know thee, but no man know thee thoroughly: Men freely
ford that see the shallows."
- Benjamin Franklin