Results 1 - 20 of 27

RegExp.prototype

The RegExp.prototype property represents the prototype object for the RegExp constructor.
JavaScript Property Prototype Reference RegExp

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

Regular Expressions

Regular expressions are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. These patterns are used with the exec and test methods of RegExp, and with the match, replacesearch, and split methods of String. This chapter describes JavaScript regular expressions.
Guide Intermediate JavaScript Reference regex RegExp Regular Expressions

RegExp.prototype.compile()

The deprecated compile() method is used to (re-)compile a regular expression during execution of a script. It is basically the same as the RegExp constructor.
Deprecated JavaScript Method Prototype Reference RegExp Regular Expressions

RegExp.prototype.flags

The flags property returns a string consisting of the flags of the current regular expression object.
ECMAScript6 JavaScript Property Prototype Reference RegExp Regular Expressions