mozilla
Your Search Results

    RegExp.prototype Redirect 1

    Summary

    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

    Description

    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.

    Properties

    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.

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

    Methods

    See also Deprecated RegExp Methods

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

    Specifications

    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,