lua-users home
lua-l archive

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



On Feb 1, 2008, at 8:55 PM, Eric Tetz wrote:

The first three are easy enough, but stuff like 'replace null with nil
only when it's not inside a string' is not doable with regular
expressions. For instance:

{"items": [ {",null": "null,"}, null, {",null": "null,"}]

Perhaps one could simply ignore the null altogether... as unquoted null will resolve to nil in loadstring...