Interface RegExpConstructor
interface RegExpConstructor {
new RegExpConstructor(pattern: string | RegExp): RegExp;
new RegExpConstructor(pattern: string, flags?: string): RegExp;
new RegExpConstructor(pattern: string | RegExp, flags?: string): RegExp;
"[species]": RegExpConstructor;
$_: string;
"$'": string;
"$&": string;
"$`": string;
"$+": string;
$1: string;
$2: string;
$3: string;
$4: string;
$5: string;
$6: string;
$7: string;
$8: string;
$9: string;
input: string;
lastMatch: string;
lastParen: string;
leftContext: string;
prototype: RegExp;
rightContext: string;
(pattern: string | RegExp): RegExp;
(pattern: string, flags?: string): RegExp;
(pattern: string | RegExp, flags?: string): RegExp;
}
new RegExpConstructor(pattern: string | RegExp): RegExp;
new RegExpConstructor(pattern: string, flags?: string): RegExp;
new RegExpConstructor(pattern: string | RegExp, flags?: string): RegExp;
"[species]": RegExpConstructor;
$_: string;
"$'": string;
"$&": string;
"$`": string;
"$+": string;
$1: string;
$2: string;
$3: string;
$4: string;
$5: string;
$6: string;
$7: string;
$8: string;
$9: string;
input: string;
lastMatch: string;
lastParen: string;
leftContext: string;
prototype: RegExp;
rightContext: string;
(pattern: string | RegExp): RegExp;
(pattern: string, flags?: string): RegExp;
(pattern: string | RegExp, flags?: string): RegExp;
}
- RegExpConstructor(pattern: string | RegExp): RegExp
Parameters
- pattern: string | RegExp
Returns RegExp
- RegExpConstructor(pattern: string, flags?: string): RegExp
Parameters
- pattern: string
Optional
flags: string
Returns RegExp
- RegExpConstructor(pattern: string | RegExp, flags?: string): RegExp
Parameters
- pattern: string | RegExp
Optional
flags: string
Returns RegExp
Constructors
constructor
- new RegExpConstructor(pattern: string | RegExp): RegExp
Parameters
- pattern: string | RegExp
Returns RegExp
- new RegExpConstructor(pattern: string, flags?: string): RegExp
Parameters
- pattern: string
Optional
flags: string
Returns RegExp
- new RegExpConstructor(pattern: string | RegExp, flags?: string): RegExp
Parameters
- pattern: string | RegExp
Optional
flags: string
Returns RegExp
Properties
Readonly
[species]
$_
$_: string
$'
"$'": string
$&
"$&": string
$`
"$`": string
$+
"$+": string
$1
$1: string
$2
$2: string
$3
$3: string
$4
$4: string
$5
$5: string
$6
$6: string
$7
$7: string
$8
$8: string
$9
$9: string
input
input: string
lastMatch
lastMatch: string
lastParen
lastParen: string
leftContext
leftContext: string
Readonly
prototype
rightContext
rightContext: string
Deprecated
A legacy feature for browser compatibility