Course contentsShow
JavaScript
Lesson 1665 of 2,72336. Regular ExpressionsPro lesson

Creating Regex Patterns: Literals vs Constructor

Two ways to create regex in JavaScript: /pattern/flags syntax and new RegExp() constructor.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.