Author(s): Sundeep Agarwal
Publisher: Sundeep Agarwal
Year: 2019
Language: English
Pages: 71
Tags: Python, python, regexp, regular expressions, regular expression python, regex, regular expression
Preface
Prerequisites
Acknowledgements
Feedback and Errata
Author info
License
Book version
Why is it needed?
Regular Expression modules
re module
Compiling regular expressions
bytes
regex module
Cheatsheet and Summary
Exercises
Anchors
String anchors
Line anchors
Word anchors
Cheatsheet and Summary
Exercises
Alternation and Grouping
Precedence rules
Cheatsheet and Summary
Exercises
Escaping metacharacters
Cheatsheet and Summary
Exercises
Dot metacharacter and Quantifiers
Dot metacharacter
Greedy quantifiers
Non-greedy quantifiers
Possessive quantifiers
Cheatsheet and Summary
Exercises
Working with matched portions
re.Match object
re.findall
re.finditer
Cheatsheet and Summary
Exercises
Character class
Custom character sets
Character class metacharacters
Escape sequence character sets
Cheatsheet and Summary
Exercises
Groupings and backreferences
Non-capturing groups
Named capture groups
Subexpression calls
Cheatsheet and Summary
Exercises
Lookarounds
Negative lookarounds
Positive lookarounds
Conditional AND
Variable length lookbehind
Negated groups
Cheatsheet and Summary
Exercises
Flags
Cheatsheet and Summary
Exercises
Unicode
Unicode character sets
Cheatsheet and Summary
Exercises
Miscellaneous
Using dict
re.subn
\G anchor
Recursive matching
Named character sets
Character class set operations
Skipping matches
Cheatsheet and Summary
Exercises
Gotchas
Further Reading