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 true.

Example

matchRegExp("Hello World", "Hello\s+World")

Returns true.

Explanation:

Here you check if the string satisfies the regular expression (java syntax): starts with “Hello”, then any kind of string and finishes with “World”.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now