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
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9