Interface RegExp
Hierarchy
- RegExp
Index
Methods
Methods
__@match
-
Parameters
-
string: string
A string to search within.
Returns RegExpMatchArray | null
-
__@replace
-
Replaces text in a string, using this regular expression.
Parameters
-
string: string
A String object or string literal whose contents matching against this regular expression will be replaced
-
replaceValue: string
A String object or string literal containing the text to replace for every successful match of this regular expression.
Returns string
-
-
Replaces text in a string, using this regular expression.
Parameters
-
string: string
A String object or string literal whose contents matching against this regular expression will be replaced
-
replacer: function
A function that returns the replacement text.
-
-
Parameters
-
substring: string
-
Rest ...args: any[]
Returns string
-
-
-
Returns string
-
__@search
-
Finds the position beginning first substring match in a regular expression search using this regular expression.
Parameters
-
string: string
The string to search within.
Returns number
-
__@split
-
Returns an array of substrings that were delimited by strings in the original input that match against this regular expression.
If the regular expression contains capturing parentheses, then each time this regular expression matches, the results (including any undefined results) of the capturing parentheses are spliced.
Parameters
-
string: string
string value to split
-
Optional limit: number
if not undefined, the output array is truncated so that it contains no more than 'limit' elements.
Returns string[]
-
Generated using TypeDoc
Matches a string with this regular expression, and returns an array containing the results of that search.