Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

pattern_matching

Philipp Janda edited this page Mar 11, 2015 · 2 revisions

String Library Pattern Matching

Lua 5.2 allows the NUL character ('\0') in patterns. Lua 5.1 used a separate character class (%z) for this. The compatibility functions of the string library unconditionally replace NUL characters with the character class in patterns. This does not work correctly in character ranges (e.g. "[\0-\127]").

Clone this wiki locally