lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 15/05/2007, at 9:37 AM, David Burgess wrote:

What I grapple with is

print(string.match("x","[f]"))
nil

print(string.match("x","[f]*"))

(empty string)

Whilst it may not look intuitive, you have indeed matched zero (or more) occurrences of "f", as requested.

- Nick