Regex Quick Syntax Reference: Understanding and Using Regular Expressions

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"

This quick guide to regular expressions is a condensed code and syntax reference for an important programming technique. It demonstrates regex syntax in a well-organized format that can be used as a handy reference, showing you how to execute regexes in many languages, including JavaScript, Python, Java, and C#.
TheRegex Quick Syntax Referencefeatures short, focused code examples that show you how to use regular expressions to validate user input, split strings, parse input, and match patterns. Utilizing regular expressions to deal with search/replace and filtering data for backend coding is also covered.
You won't find any bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise and highly accessible. The book is packed with useful information and is a must-have for any programmer.
What You Will Learn
Formulate an expression


Work with arbitrary char classes, disjunctions, and operator precedence


Execute regular expressions and visualize using finite state machines


Deal with modifiers, including greedy and lazy loops


Handle substring extraction from regex using Perl 6 capture groups, capture substrings, and reuse substrings
Who This Book Is For
If you have dealt with at least one programming language, chances are you know enough to understand regular expressions, and the examples in this book will help you develop proficiency.

Author(s): Zsolt Nagy
Publisher: Apress
Year: 2018

Language: English
Commentary: True PDF
Pages: 155

Front Matter ....Pages i-xi
An Introduction to Regular Expressions (Zsolt Nagy)....Pages 1-8
Regex Syntax 101 (Zsolt Nagy)....Pages 9-21
Executing Regular Expressions (Zsolt Nagy)....Pages 23-51
Visualizing Regex Execution Using Finite State Machines (Zsolt Nagy)....Pages 53-66
Repeat Modifiers (Zsolt Nagy)....Pages 67-84
Character Sets and Character Classes (Zsolt Nagy)....Pages 85-93
Substring Extraction from Regular Expressions (Zsolt Nagy)....Pages 95-108
Lookahead and Lookbehind (Zsolt Nagy)....Pages 109-113
Maintaining Regular Expressions (Zsolt Nagy)....Pages 115-129
Optimizing Regular Expressions (Zsolt Nagy)....Pages 131-139
Parsing HTML Code and URL Query Strings with Regular Expressions (Zsolt Nagy)....Pages 141-145
Back Matter ....Pages 147-153