Function search

  • Get first index of regular expression match in string.

    Parameters

    • x: string

      a string

    • regexp: string | RegExp

      regular expression

    Returns number

    first index of match

Generated using TypeDoc