We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

RegExp.prototype Redirect 1


The Regex.prototype property represents the prototype object for the RegExp constructor.

Property attributes of RegExp.prototype Redirect 1
Writable No
Enumerable No
Configurable No


See RegExp for a description of RegExp instances. RegExp instances inherit from RegExp.prototype. Modifications to the prototype object are propagated to all RegExp instances.


See also Deprecated RegExp Properties

Note that several of the RegExp properties have both long and short (Perl-like) names. Both names always refer to the same value. Perl is the programming language from which JavaScript modeled its regular expressions.

Specifies the function that creates an object's prototype.
Whether to test the regular expression against all possible matches in a string, or only against the first.
Whether to ignore case while attempting a match in a string.
The index at which to start the next match.
Whether or not to search in strings across multiple lines.
The text of the pattern.
Whether or not the search is sticky.
Properties inherited from Object:


See also Deprecated RegExp Methods

Executes a search for a match in its string parameter.
Tests for a match in its string parameter.
Returns an object literal representing the specified object; you can use this value to create a new object. Overrides the Object.prototype.toSource method.
Returns a string representing the specified object. Overrides the Object.prototype.toString() method.


Specification Status Comment
ECMAScript 1st Edition. Implemented in JavaScript 1.1 Standard Initial definition.
ECMAScript Language Specification 5.1th Edition (ECMA-262) Standard  
ECMAScript Language Specification 6th Edition (ECMA-262) Draft  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

See also

Document Tags and Contributors

Contributors to this page: Sheppy
Last updated by: Sheppy,