Summary

Here's a quick summary for you!

The RegExp object is not the only way you can define a regular expression, and it’s definitely not the most comfortable way of dealing with them. However, if you’re looking to customize the behavior of the expression’s methods, then this object is the gateway that JavaScript gives you.

There is still a lot more to cover, and we want to show you not only the simple use cases but also some real-world examples of regular expressions in action. Hopefully, by the end of the next two chapters, you’ll be able to use what’s been covered here and in chapter 2 to create your own expressions.

Stay tuned!

Get hands-on with 1200+ tech skills courses.