Tests a value against a given regular expression and returns a list of normalized results.

  • Parameters

    • reg: RegExp

      The regular expression to use

    • val: string

      The string to test with the regular expression

    Returns RegExResult[]