lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
is this behavior correct?
From
: Xavier Wang <weasley.wx@
...
>
Date
: Mon, 13 Jun 2011 19:23:49 +0800
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?
Follow-Ups
:
Re: is this behavior correct?
,
Peter Cawley
Prev by Date:
Re: [ANN] Winapi 2nd beta
Next by Date:
Re: is this behavior correct?
Previous by thread:
Sidereal vs. Redis 2.2
Next by thread:
Re: is this behavior correct?
Index(es):
Date
Thread