Core JavaScriptExtendScript only
Object

RegExp

Wraps a regular expression.

Properties

NameType AccessDescription
static String readonly The matched subexpression #1.
static String readonly The matched subexpression #2.
static String readonly The matched subexpression #3.
static String readonly The matched subexpression #4.
static String readonly The matched subexpression #5.
static String readonly The matched subexpression #6.
static String readonly The matched subexpression #7.
static String readonly The matched subexpression #8.
static String readonly The matched subexpression #9.
static Boolean read/write Indicates whether the match is a global match.
static Boolean read/write Indicates whether the match is not case sensitive.
static String read/write The original input string.
static String readonly The last match.
static String readonly The value of the last matched subexpression.
static String readonly The string before the match.
static Boolean read/write Indicates whether the match matches multiple lines.
static String readonly The string after the match.

Methods

RegExp

Creates and returns a new RegExp object set to the value of the argument converted to a regular expression.

pattern String The pattern to convert.
flags? String Flags that control how the conversion is performed.
Boolean

Compiles a string to a regular expression. Returns true if the compilation was successful.

pattern String The pattern to compile.
Array

Execute a regular expression.

text String The string to match.
Boolean

Execute a regular expression, and return true if there is a match.

text String The string to match.
String

Converts this RegExp object to a string.

Parameter of 2

Method parameters that accept a RegExp.

Return 1

Methods that return a RegExp.