JavaScript RegExp an example based guide

JavaScript RegExp an example based guide

Author
Sundeep Agarwal
Publisher
Sundeep Agarwal
Language
English
Year
2019
Page
59
File Type
pdf
File Size
437.6 KiB

Preface 4Prerequisites 4Conventions 4Acknowledgements 4Feedback and Errata 5Author info 5License 5Book version 5What's so special about Regular Expressions? 6RegExp introduction 7Console 7test method 7Flags 8RegExp constructor and reuse 8replace method 10Cheatsheet and Summary 10Exercises 11Anchors 12String anchors 12Line anchors 13Word anchors 14Cheatsheet and Summary 15Exercises 16Alternation and Grouping 18OR conditional 18Grouping 18Precedence rules 19Cheatsheet and Summary 20Exercises 20Escaping metacharacters 22Dynamically escaping metacharacters 22Dynamically building alternation 23source and flags properties 24Escaping delimiter 24Cheatsheet and Summary 24Exercises 25Dot metacharacter and Quantifiers 26Dot metacharacter 26Greedy quantifiers 26Non-greedy quantifiers 29s flag 30Debugging and Visualization tools 30Cheatsheet and Summary 31Exercises 31Working with matched portions 34match method 34search method 34Capture groups 35Getting all matched portions 35matchAll method 36Using function in replacement section 37Using dictionary in replacement section 37Cheatsheet and Summary 38Exercises 39Character class 41Custom character sets 41Character class metacharacters 41Escape sequence character sets 43Cheatsheet and Summary 44Exercises 44Groupings and backreferences 46Backreferences 46Backreference oddities 47Non-capturing groups 48Named capture groups 49Cheatsheet and Summary 49Exercises 50Lookarounds 52Negative lookarounds 52Positive lookarounds 53AND conditional 54Variable length lookbehind 54Negated grouping 54Cheatsheet and Summary 55Exercises 55Unicode 57Unicode character sets and u flag 57Codepoints 57Cheatsheet and Summary 58Exercises 58Further Reading 59JavaScript,Regular Expressions,examples,learnbyexampleRegular Expressions

show more...

How to Download?!!!

Just click on START button on Telegram Bot

Free Download Book