• Evaluates a value with a regular expression

    Parameters

    • v: any

      a string value to test with the expression

    • ex: RegExp

      the regular expresion to test with

    Returns any[]

    an array of matches