lua-users home
lua-l archive

String pattern for chinese word

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


Hi all!
 s = [[ '\xe8\x8b\xb1\xe9\x9b\x84\xe6\x95\x91\xe7\xbe\x8e','id','哈哈','6' ]]
 for i in string.gmatch(s,"'(%w+)'") do
 print(i)
 end
output is:
id
6
 How can I get the all four words?
mos

AltStyle によって変換されたページ (->オリジナル) /