Edit product

JavaScript RegExp


Literally was having a mini-breakdown about not understanding Regex in algorithm solutions the other day and now I'm feeling so much better, so thank YOU!

I genuinely feel like I'm developing the skill for spotting when and where to use them after so much practice! — feedback on twitter

Book details

Scripting and automation tasks often need to extract particular portions of text from input data or modify them from one format to another.

This book will help you learn JavaScript Regular Expressions, a mini-programming language for all sorts of text processing needs.

The book heavily leans on examples to present features of regular expressions one by one. It is recommended that you manually type each example and experiment with them.

Exercises are also included to test your understanding.


You should have a good understanding of basic-level programming concepts and prior experience working with JavaScript. Should also know functional programming concepts like map and filter.

Sample chapters

For a preview of the book, see sample chapters at https://github.com/learnbyexample/learn_js_regexp/blob/master/sample_chapters/js_regexp_sample_chapters.pdf

GitHub repo

Visit https://github.com/learnbyexample/learn_js_regexp for code snippets, all exercises as a single file and exercise solutions.

2 ratings

  • You'll get PDF and EPUB versions of the book.
  • Length78 pages
  • Last Updated2021-04-08


JavaScript RegExp

Enter your info to complete your purchase

Give as a gift


or pay with
pp paypal
You'll be charged US$10.