For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

"Goat".test(/oat/) == true
"HeLlO".test(/hello/i) == true

Last updated

Was this helpful?