Syntax

Parameters

Untitled Database

The RegExp object is only as useful as your knowledge of Regular Expressions is strong. See here for an introductory primer, or see MDN for a more in-depth explanation.

Creating a RegExp Object

RegExp Flags

Check if string contains pattern using .test

Matching With .exec

Using RegExp With Strings

RegExp Groups

Replacing string match with a callback function

Using Regex.exec with parentheses regex to extract matches of a string