lua-users home
lua-l archive

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


The example posted in [1] still behaves the same.

Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
> =(";a;"):gsub("a-", "ITEM")
ITEM;ITEMaITEM;ITEM    4

I.e. the substring 'a' in ";a;" is not recognized as an instance
of the pattern "a-".

The new behaviour is so far documented only in the list
of changes [2], not in the manual. Thus, it is not possible
to work out what the new behaviour should be, but the poster
of [1] clearly expected "ITEM;ITEMITEM;ITEM".

[1] http://lua-users.org/lists/lua-l/2013-04/msg00818.html
[2] http://lua-users.org/lists/lua-l/2016-05/msg00068.html