lua-users home
lua-l archive

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


If your "s" string was UTF-8 encoded [1], the following test could be used.
I know this is not 100% correct, but may be sufficient for most needs :

 for i in string.gmatch(s,"'([%w\x80-\xbF\xC2-\xF4]+)'") do
   print(i)
 end

[1] \x.. string notation do not work inside a [[ ]] construct !