matches
Returns a Boolean value after match of a regular expression against a string. See Regular Expressions in JavaScript Guide for more details about how to write a regular expression pattern.
See also replace.
Syntax
matches(regex)
Parameter |
Description |
---|---|
|
The regular expression to be searched for. |
Examples
$('VarName').matches(/yes/)