Computer ScienceScience & MathematicsEconomics & FinanceBusiness & ManagementPolitics & GovernmentHistoryPhilosophy

Python re(gex)?

A magical tool for text processing

by Sundeep Agarwal

Python re(gex)?

Subscribe to new books via dBooks.org telegram channel

Join
DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

Scripting and automation tasks often need to extract particular portions of text from input data or modify them from one format to another.

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.

This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download Python re(gex)? ebook for free in PDF format (0.6 MB).

Table of Contents

Chapter 1
Why is it needed?
Chapter 2
Regular Expression modules
Chapter 3
Anchors
Chapter 4
Alternation and Grouping
Chapter 5
Escaping metacharacters
Chapter 6
Dot metacharacter and Quantifiers
Chapter 7
Working with matched portions
Chapter 8
Character class
Chapter 9
Groupings and backreferences
Chapter 10
Lookarounds
Chapter 11
Flags
Chapter 12
Unicode
Chapter 13
Miscellaneous
Chapter 14
Gotchas

Book Details

Title
Python re(gex)?
Subject
Computer Science
Publisher
Self-publishing
Published
2019
Pages
71
Edition
1
Language
English
PDF Size
0.6 MB
License
CC BY-NC-SA

Related Books

Python Notes for Professionals
The Python Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow....
Programming for Computations - Python
This book presents computer programming as a key method for solving mathematical problems. This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapte...
Invent Your Own Computer Games with Python
Invent Your Own Computer Games with Python teaches you how to program in the Python language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the examples. Games include Guess the Number, Hangman, Tic Tac Toe, and Reversi. This book also has an introduction to making games with 2D graph...
Hacking Secret Ciphers with Python
There are many books that teach beginners how to write secret messages using ciphers. There are a couple books that teach beginners how to hack ciphers. As far as I can tell, there are no books to teach beginners how to write programs to hack ciphers. This book fills that gap. This book is for complete beginners who do not know anything about en...
Python Machine Learning Projects
As machine learning is increasingly leveraged to find patterns, conduct analysis, and make decisions - sometimes without final input from humans who may be impacted by these findings - it is crucial to invest in bringing more stakeholders into the fold. This book of Python projects in machine learning tries to do just that: to equip the developers ...
A Whirlwind Tour of Python
To tap into the power of Python's open data science stack - including NumPy, Pandas, Matplotlib, Scikit-Learn, and other tools - you first need to understand the syntax, semantics, and patterns of the Python language. This report provides a brief yet comprehensive introduction to Python for engineers, researchers, and data scientists who are a...