JavaScript RegExp an example based guide

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Sundeep Agarwal
Publisher: Sundeep Agarwal
Year: 2019

Language: English
Pages: 59

Preface
Prerequisites
Conventions
Acknowledgements
Feedback and Errata
Author info
License
Book version
What's so special about Regular Expressions?
RegExp introduction
Console
test method
Flags
RegExp constructor and reuse
replace method
Cheatsheet and Summary
Exercises
Anchors
String anchors
Line anchors
Word anchors
Cheatsheet and Summary
Exercises
Alternation and Grouping
OR conditional
Grouping
Precedence rules
Cheatsheet and Summary
Exercises
Escaping metacharacters
Dynamically escaping metacharacters
Dynamically building alternation
source and flags properties
Escaping delimiter
Cheatsheet and Summary
Exercises
Dot metacharacter and Quantifiers
Dot metacharacter
Greedy quantifiers
Non-greedy quantifiers
s flag
Debugging and Visualization tools
Cheatsheet and Summary
Exercises
Working with matched portions
match method
search method
Capture groups
Getting all matched portions
matchAll method
Using function in replacement section
Using dictionary in replacement section
Cheatsheet and Summary
Exercises
Character class
Custom character sets
Character class metacharacters
Escape sequence character sets
Cheatsheet and Summary
Exercises
Groupings and backreferences
Backreferences
Backreference oddities
Non-capturing groups
Named capture groups
Cheatsheet and Summary
Exercises
Lookarounds
Negative lookarounds
Positive lookarounds
AND conditional
Variable length lookbehind
Negated grouping
Cheatsheet and Summary
Exercises
Unicode
Unicode character sets and u flag
Codepoints
Cheatsheet and Summary
Exercises
Further Reading