JavaScript RegExp
$10.00
Minimum price
$12.00
Suggested price

JavaScript RegExp

an example based guide

About the Book

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

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.

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.

Exercises are also included to test your understanding.

Visit https://github.com/learnbyexample/learn_js_regexp for code snippets. The repo also has exercises collated in a single file as well as another file with solutions.

About the Author

Sundeep Agarwal
Sundeep Agarwal

Sundeep Agarwal is a freelance trainer, author and mentor. His previous experience includes working as a Design Engineer at Analog Devices for more than 5 years. You can find his other works, primarily focused on Linux command line, text processing, scripting languages and curated lists, at https://github.com/learnbyexample. He has also been a technical reviewer for Command Line Fundamentals book and video course published by Packt.

Bundles that include this book

$70.00
Suggested Price
$15.00
Bundle Price

Table of Contents

1. Preface

2. What's so special about Regular Expressions?

3. RegExp introduction

4. Anchors

5. Alternation and Grouping

6. Escaping metacharacters

7. Dot metacharacter and Quantifiers

8. Interlude: Tools for debugging and visualization

9. Working with matched portions

10. Character class

11. Groupings and backreferences

12. Interlude: Common tasks

13. Lookarounds

14. Unicode

15. Further Reading

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Do Well. Do Good.

Authors have earned$11,040,859writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub