Skip to main content

full_match

Determines if the regular expression matches the entire target character sequence.

const str = "HelloWorld!";
regex.full_match("Hello(.*)", str); //true
regex.full_match("Hallo(.*)", str); //false

Syntax

full_match(pattern, expression)

Returns

A boolean indicating whether a match was found.