Understanding and Using Regular Expressions
Buch, Englisch, 153 Seiten, Format (B × H): 155 mm x 235 mm, Gewicht: 265 g
ISBN: 978-1-4842-3875-2
Verlag: Apress
The Regex Quick Syntax Reference features 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
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.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Programmierung: Methoden und Allgemeines
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Programmier- und Skriptsprachen
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Software Engineering
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Webprogrammierung
Weitere Infos & Material
1. An Introduction to Regular Expressions.- 2. Regex Syntax 101.- 3. Executing Regular Expressions.- 4. Visualizing Regex Execution using Finite State Machines.- 5. Repeat modifiers.- 6. Character Sets and Character Classes.- 7. Substring Extraction from Regular Expressions.- 8. Lookahead and Lookbehind.- 9. Maintaining Regular Expressions.- 10. Optimizing regular expressions.- 11. Parsing HTML Code and URL Query Strings with Regular Expressions.- Afterword: This is not the end, but the beginning.