lua-users home
lua-l archive

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


On Dec 1, 2012 8:59 AM, "Alexandre Rion" <gaumerie@hotmail.com> wrote:
>
> or
>
> if str:find('^'..sub) then ... end
>

That won't work if sub contains special characters like .[]+ etc... though it's common I wish to embed strings in patterns like this; makes me wish for a built-in function to escape those characters.