Mastering Python regular expressions.
A short and straight to the point guide that explains the implementation of regular expressions in Python. This book is aimed at Python developers who want to learn how to leverage regular expressions in Python. Basic knowledge of Python is required for a better understanding.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Packt Publishing,
2014.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introducing Regular Expressions; History, relevance, and purpose; The regular expression syntax; Literals; Character classes; Predefined character classes; Alternation; Quantifiers; Greedy and reluctant quantifiers; Boundary Matchers; Summary; Chapter 2: Regular Expressions with Python; A brief introduction; Backslash in string literals; String Python 2.x; Building blocks for Python regex; RegexObject; Searching; Modifying a string; MatchObject; group([group1 ...]).
- Overlapping groupsSummary; Chapter 4: Look Around; Look ahead; Negative look ahead; Look around and substitutions; Look behind; Negative look behind; Look around and groups; Summary; Chapter 5: Performance of Regular Expressions; Benchmarking regular expressions with Python; The RegexBuddy tool; Understanding the Python regex engine; Backtracking; Optimization recommendations; Reuse compiled patterns; Extract common parts in alternation; Shortcut to alternation; Use non-capturing groups when appropriate; Be specific; Don't be greedy; Summary; Index.