RegEx in Python

A comprehensive guide for learning regular expressions using Python

Card image cap

1. Introduction

An introduction to regular expressions, their brief history, important usages and basic syntax

Card image cap

2. import re

Get started with in-build python module re and learn various methods for pattern matching.

Card image cap

3. Character Classes

Learn the concept of character classes, character set range and predefined character classes.

Card image cap

4. The Backslash Plague

Learn how backslashes can be very annoying when dealing with regular expressions and how to tackle them in multiple ways.

Card image cap

5. Alteration

Learn the basics of alteration with examples.

Card image cap

6. Quantifiers

Learn the basics of quantifiers with various examples.

Card image cap

7. Greedy & Non-Greedy Quantifiers

Discussion about greedy and non-greedy behaviour of quantifiers.

Card image cap

8. Boundary Matchers

Learn the concept of boundary matchers and their types.

Card image cap

9. Splitting

Learn how to split text by regex pattern with examples.

Card image cap

10. Substitution

Learn how to do substitutions at pattern matches with examples.

Card image cap

11. Compilation Flags

Learn the concept of compilation flags with examples.

Card image cap

12. Grouping

Learn the very important concept of "Grouping" and its various applications.

Card image cap

13. Backreference

Learn how to backreference groups and its interesting applications.

Card image cap

14. Named Groups

Learn how to refer to regex groups by names instead of index.

Card image cap

15. Non-Capturing Groups

Learn how to prevent a group from capturing its matching part with examples.

Card image cap

16. Look Ahead

Learn the concept of look ahead mechanism with some basic examples.

Card image cap

17. Look Behind

Learn the concept of look behind mechanism with some basic exmaples.