lua-users home
lua-l archive

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

The simple pattern "^%Z*$" validates whether a string is C-compatible. It looks slightly nicer than "^[^\0]*$" and doesn't require the use of string literal escapes.

Please keep %Z.

Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.