Understanding JavaScript RegExp: Example based guide to mastering JavaScript regular expressions
4,210
READERS
83
PAGES
60 DAYS
GUARANTEE
ENGLISH
EPUB
Book Description
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 included to test your understanding. Reference solutions are also provided.
Prerequisites
You should be familiar with programming basics. You should also have a working knowledge of JavaScript syntax and functional programming concepts like map and filter.
You are also expected to get comfortable with reading documentation, searching online, visiting external links provided for further reading, tinkering with illustrated examples, asking for help when you are stuck and so on. In other words, be proactive and curious instead of just consuming the content passively.
Table of Contents
1. Preface
2. Why is it needed?
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