JavaScript – RegExp lastIndex Property
The JavaScript RegExp lastIndex property specifies the index at which to start the next match, and only works if the g modifier is set.
The JavaScript RegExp lastIndex property specifies the index at which to start the next match, and only works if the g modifier is set.
The JavaScript RegExp multiline property returns “true” if the m modifier is set, and “false” if it is not set.
The JavaScript RegExp source property returns the text of the RegExp pattern.
The JavaScript RegExp test() method tests for a match in a string. If a match is found, it returns “true”, otherwise it returns “false”.
The JavaScript RegExp toString() method returns the string value of the regular expression.
The String match() method matches a string against a regular expression, returning an array with the matches or null if no match is found.
The String replace() method searches a string for a value or a regular expression, and returns a new string with the values replaced.
The String search() method matches a string against a regular expression, returning the position of the first match or -1 if no match is found.
The String split() method splits a string into an array of substrings, and returns a new array, without changing the original string.