Results 21 - 36 of 36

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

function expression

The function keyword can be used to define a function inside an expression.
Function JavaScript Operator operator Primary Expressions

new operator

The new operator creates an instance of a user-defined object type or of one of the built-in object types that has a constructor function.
JavaScript Left-hand-side expressions Operator operator

this

A function's this keyword behaves a little differently in JavaScript compared to other languages. It also has some differences between strict mode and non-strict mode.
JavaScript operator Operator Primary Expressions Reference

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

RegExp.lastMatch ($&)

The non-standard lastMatch property is a static and read-only property of regular expressions that contains the last matched characters. RegExp.$& is an alias for this property.
JavaScript Property Read-only Reference RegExp Regular Expressions

RegExp.lastParen ($+)

The non-standard lastParen property is a static and read-only property of regular expressions that contains the last parenthesized substring match, if any. RegExp.$+ is an alias for this property.
JavaScript Property Read-only Reference RegExp Regular Expressions

RegExp.leftContext ($`)

The non-standard leftContext property is a static and read-only property of regular expressions that contains the substring preceding the most recent match. RegExp.$` is an alias for this property.
JavaScript Property Read-only Reference RegExp Regular Expressions

RegExp.$1-$9

The non-standard $1, $2, $3, $4, $5, $6, $7, $8, $9 properties are static and read-only properties of regular expressions that contain parenthesized substring matches.
JavaScript Property Read-only Reference RegExp Regular Expressions

RegExp.rightContext ($')

The non-standard rightContext property is a static and read-only property of regular expressions that contains the substring following the most recent match. RegExp.$' is an alias for this property.
JavaScript Property Read-only Reference RegExp Regular Expressions

RegExp.prototype.sticky

The sticky property reflects whether or not the search is sticky (searches in strings only from the index indicated by the lastIndex property of this regular expression). sticky is a read-only property of an individual regular expression object.
ECMAScript6 JavaScript Property Prototype Reference RegExp Regular Expressions

RegExp.prototype.unicode

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

super

The super keyword is used to call functions on an object's parent.
Classes ECMAScript6 JavaScript Left-hand-side expressions Operator operator