lua-users home
lua-l archive

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


> - Character class followed by {n,m}, which matches n or more until m
> ocurrences of the character class. When m is ommited, it matches exactly n
> characters.

You can emulate that building the pattern:

   strrep(pat, n) .. strrep(pat..'?', (m or n) - n)

-- Roberto