[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Difference in string matching between 5.1 and 5.2
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 2 Dec 2013 07:23:38 +0200
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
>