RegExp: The Basics

Today we’ll talk about regular expressions. What is a regular expression? Regular expressions are patterns used to match sequences of characters in strings.

Syntax for creating a regular expression:

var regexp = /template/; // without flags

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept