matchRegExp

Last update: 2023-01-23
  • Created for:
  • Experienced
    Developer

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.

On this page