Returns true if the string in the first parameter matches the regular expression in the second parameter. For more information, see this page.
String
matchRegExp(<parameters>)
Parameter | Type |
---|---|
string | string |
regexp | string |
matchRegExp(<string>,<string>)
Returns a boolean.
matchRegExp("username@adobe.com", "*adobe")
Returns true.