Function find

  • Extracts one regular expression match from val.

    Parameters

    • val: string
    • regex: RegExp
    • Optionalall: false

    Returns string

  • Extracts all regular expression matches from val.

    Parameters

    • val: string
    • regex: RegExp
    • all: true

    Returns string[]