Cogitek RIATest 3 Documentation Copyright © Cogitek Inc.

RegExp Object

Object is an unordered collection of properties each of which contains a primitive value or another object.

Methods

MethodDescription

RegExp

new RegExp(pattern,[flags])
Creates a new RegExp. The optional flags is a string containing charactes g,i,m.

exec

exec(string)
Perform a regular expression match on the specified string. Returns an Array containing result of match or null if string did not match.

test

test(string)
Equivalent to RegExp.exec(string) != null.

toString

toString()
Returns string representation of this object.

Found a typo? Have a suggestion? Please submit your request here.