Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

RegExp

2 tags 1 category

The RegExp object is used for matching text with a pattern.

For an introduction to regular expressions, read the Regular expressions chapter in the JavaScript guide. For detailed information of regular expression syntax, read the regular expression reference.

There are two ways to create a RegExp object: a literal notation and a constructor.

The literal notation takes a pattern between two slashes, followed by optional flags, after the second slash. The constructor function takes either a string or a RegExp object as its first parameter and a string of optional flags as its second parameter.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…