This book will help you learn Python Regular Expressions, a mini-programming language for all sorts of text processing needs.
The book heavily leans on examples to present features of regular expressions one by one. It is recommended that you manually type each example and experiment with them.
You should have prior experience working with Python, should know concepts like string formats, string methods, list comprehension and so on.
Both standard re module and popular third party regex module is covered in this book.
Table of contents
- Why is it needed?
- Regular Expression modules
- Anchors
- Alternation and Grouping
- Escaping metacharacters
- Dot metacharacter and Quantifiers
- Working with matched portions
- Character class
- Groupings and backreferences
- Lookarounds
- Flags
- Unicode
- Miscellaneous
- Gotchas
Pages : | 71 |
Size : | 0.6 MB |
Downloads: | 96 |
Created: | 2022-02-03 |
License: | CC BY-NC-SA |
Author(s): | Sundeep Agarwal |
Others related eBooks about Python re(gex)?
If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you?
Python has become a required skill for data science, and it's easy to see why. It's powerf..., download free Python tutorial in PDF (110 pages) created by .
By taking you through the development of a real web application from beginning to end, this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You'll learn how to write and run tests before building each part of your app, and then develop the minimum a
In this tutorial, we will introduce you to the basic concepts of Python programming in an informal manner.
This online version of the NLTK book is updated for Python 3 and NLTK 3 on 2015.