Function match

  • Get results of matching string with regular expression.

    Parameters

    • x: string

      a string

    • regexp: string | RegExp

      regular expression

    Returns RegExpMatchArray

    /g: all matches, else: match with capturing groups or null

Generated using TypeDoc