Skip to content

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

  • string format: Format string where each specifier maps to a value. Supported specifiers: d (integer), f (number), s (string).
  • string text: Input text to parse.

Returns table|nil

Array of parsed values, or nil on parse failure.