JavaScript: RegExp Object

By Xah Lee. Date: . Last updated: .

RegExp is the value of the property key "RegExp" of the Global Object .

console.log( window.RegExp === RegExp ); // true

Type

Type of RegExp is a function.

// type of RegExp
console.log( typeof RegExp === "function" ); // true

Parent

Parent of RegExp is Function.prototype. [see Prototype and Inheritance]

console.log( Reflect.getPrototypeOf ( RegExp ) === Function.prototype ); // true

Purpose

Purpose of RegExp is:

Tutorial

Constructor

RegExp Constructor

Properties

JavaScript Regular Expression

JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

RegExp

prototype

Syntax

misc