5 options
Mastering python regular expressions : leverage regular expressions in python even for the most complex features / Félix López, Víctor Romero ; cover image by Gagandeep Sharma.
- Format:
- Book
- Author/Creator:
- Lopez, Felix.
- Series:
- Community experience distilled
- Language:
- English
- Subjects (All):
- Python (Computer program language).
- Text processing (Computer science).
- Programming languages (Electronic computers).
- Physical Description:
- 1 online resource (110 p.)
- Edition:
- 1st edition
- Place of Publication:
- Birmingham, England : Packt Publishing Ltd, 2014.
- Language Note:
- English
- System Details:
- text file
- Summary:
- 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.
- Contents:
- 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, ...])
- groups([default])groupdict([default]); start([group]); end([group]); span([group]); expand(template); Module operations; escape(); purge(); Compilation flags; re.IGNORECASE or re.I; re.MULTILINE or re.M; re.DOTALL or re.S; re.LOCALE or re.L; re.UNICODE or re.U; re.VERBOSE or re.X; re.DEBUG; Python and regex special considerations; Differences between Python and other flavors; Unicode; What's new in Python 3; Summary; Chapter 3: Grouping; Introduction; Backreferences; Named groups; Non capturing groups; Atomic groups; Special cases with groups; Flags per group; yes-pattern|no-pattern
- 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
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed March 11, 2014).
- ISBN:
- 9781783283163
- 1783283165
- OCLC:
- 871189852
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.