Results 1 - 20 of 30

RegExp

The RegExp constructor creates a regular expression object for matching text with a pattern.
Constructor JavaScript Reference RegExp Regular Expressions

RegExp.prototype[@@match]()

The [@@match]() method retrieves the matches when matching a string against a regular expression.
JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype[@@replace]()

The [@@replace]() method replaces some or all matches of a this pattern in a string by a replacement, and returns the result of the replacement as a new string. The replacement can be a string or a function to be called for each match.
JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype[@@search]()

The [@@search]() method executes a search for a match between a this regular expression and a string.
JavaScript Method Prototype Reference RegExp Regular Expressions

get RegExp[@@species]

The RegExp[@@species] accessor property returns the RegExp constructor.
JavaScript Property Prototype Reference RegExp Regular Expressions

RegExp.prototype[@@split]()

The [@@split]() method splits a String object into an array of strings by separating the string into substrings.
JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype.exec()

The exec() method executes a search for a match in a specified string. Returns a result array, or null.
JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype.global

The global property indicates whether or not the "g" flag is used with the regular expression. global is a read-only property of an individual regular expression instance.
JavaScript Property Prototype Reference RegExp Regular Expressions

RegExp.prototype.ignoreCase

The ignoreCase property indicates whether or not the "i" flag is used with the regular expression. ignoreCase is a read-only property of an individual regular expression instance.
JavaScript Property Prototype Reference RegExp Regular Expressions

RegExp.input ($_)

The non-standard input property is a static property of regular expressions that contains the string against which a regular expression is matched. RegExp.$_ is an alias for this property.
JavaScript Property Reference RegExp Regular Expressions

regexp.lastIndex

The lastIndex is a read/write integer property of regular expression instances that specifies the index at which to start the next match.
JavaScript Property Reference RegExp Regular Expressions

RegExp.prototype.multiline

The multiline property indicates whether or not the "m" flag is used with the regular expression. multiline is a read-only property of an individual regular expression instance.
JavaScript Property Prototype Reference RegExp Regular Expressions

RegExp.prototype.source

The source property returns a String containing the source text of the regexp object, and it doesn't contain the two forward slashes on both sides and any flags.
JavaScript Property Prototype Reference RegExp Regular Expressions

RegExp.prototype.test()

The test() method executes a search for a match between a regular expression and a specified string. Returns true or false.
JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype.toSource()

The toSource() method returns a string representing the source code of the object.
JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype.toString()

The toString() method returns a string representing the regular expression.
JavaScript Method Prototype Reference RegExp Regular Expressions

String.prototype.match()

The match() method retrieves the matches when matching a string against a regular expression.
JavaScript Method Prototype Reference Regular Expressions String

String.prototype.replace()

The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
Expressions JavaScript Method Prototype Reference Regular String

String.prototype.search()

The search() method executes a search for a match between a regular expression and this String object.
JavaScript Method Prototype Reference Regular Expressions String

String.prototype.split()

The split() method splits a String object into an array of strings by separating the string into substrings.
JavaScript Method Prototype Reference Regular Expressions String