Interface RegExpConstructor
interface RegExpConstructor {
new RegExpConstructornew (pattern: string | RegExp): RegExp;
new RegExpConstructornew (pattern: string, flags?: string): RegExp;
new RegExpConstructornew (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 RegExpConstructornew (pattern: string | RegExp): RegExp;
new RegExpConstructornew (pattern: string, flags?: string): RegExp;
new RegExpConstructornew (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;
}
Constructors
constructor
- new
Reg (pattern): RegExpExp Constructor Parameters
- pattern: string | RegExp
Returns RegExp
- new
Reg (pattern, flags?): RegExpExp Constructor Parameters
- pattern: string
Optional
flags: string
Returns RegExp
- new
Reg (pattern, flags?): RegExpExp Constructor 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