lua-users home
lua-l archive

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


I can't understand the following.

$ lua
Lua 5.2.2  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> utfpat = "[\xC0-\xEF][\x80-\xBF]*"
> s="the quick brown fox jumps over the lazy dog"
> =s:find(utfpat)
nil
>
$ lua515
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> utfpat = "[\xC0-\xEF][\x80-\xBF]*"
> s="the quick brown fox jumps over the lazy dog"
> =s:find(utfpat)
1       3
>