• Looks for the first match of pattern (see ยง6.4.1) in the string s. If it finds one, then match returns the captures from the pattern; otherwise it returns nil. If pattern specifies no captures, then the whole match is returned. A third, optional numeric argument init specifies where to start the search; its default value is 1 and can be negative.

    Parameters

    • s: string
    • pattern: string
    • Optional init: number
      Optional

    Returns LuaMultiReturn<string[]>

Generated using TypeDoc