• Looks for the first match of pattern in the string s. If a match is found it is returned. Otherwise, this returns nil. A third, optional numerical argument init specifies where to start the search; its default value is 1 and can be negative.

    Parameters

    • str: string
    • pattern: string
    • Optional init: number

    Returns LuaTuple<(string | number)[] | undefined[]>