lua-users home
lua-l archive

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


local s = "abcdef"
print(string.match(s, "(^abc)(def$)"))

shows "nil"

but:
local s = "abcdef"
print(string.match(s, "^(abc)(def)$"))

shows "abc def"

is this behavior correct?