RegExp
Property Summary
Methods Summary
Properties Details
global
Specifies if the "g" modifier is set.
Returns Boolean
Sample
ignoreCase
Specifies if the "i" modifier is set.
Returns Boolean
Sample
lastIndex
An integer specifying the index at which to start the next match.
Returns Number
Sample
multiline
Specifies if the "m" modifier is set.
Returns Boolean
Sample
source
The text used for pattern matching.
Returns String
Sample
Methods Details
exec(string)
Search a string for a specified value. Returns the found value and remembers the position.
Parameters Object string ;
Returns String A String representing the found value.
Sample
test(string)
Search a string for a specified value. Returns true or false.
Parameters Object string ;
Returns Boolean true if a match was found in the string. false otherwise.
Sample
Last updated