Test
type
returns
Method
boolean

Arguments

name
type
description
regex
regex
Regex to verify if matches

Explanation

Determines if given regex matches the string.

Examples

1
"Goat".test(/oat/) == true
2
"HeLlO".test(/hello/i) == true
Copied!
Last modified 1yr ago