function sscanf (shared-side)
Available since version: 0.3.0
Split text according to a format string and return the parsed values.
Declaration
table|nil sscanf(string format, string text)
Parameters
stringformat: Format string where each specifier maps to a value. Supported specifiers:d(integer),f(number),s(string).stringtext: Input text to parse.
Returns table|nil
Array of parsed values, or nil on parse failure.