matchRegExp matchRegExp

Returns true if the string in the first parameter matches the regular expression in the second parameter. For more information, see this page.

Category

String

Function syntax

matchRegExp(<parameters>)

Parameters

Parameter
Type
string
string
regexp
string

Signature and returned type

matchRegExp(<string>,<string>)

Returns a boolean.

Example

matchRegExp("username@adobe.com", "*adobe")

Returns true.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76