We have other methods of finding substring as well, but regex can cope up with way more complicated patterns than just normal searching for a substring.

What is Regex?

Regex, or a more known terminology, Regular Expressions, is used to create complex patterns for searching substring inside Strings.

We have other methods of finding substring as well, but regex can cope up with way more complicated patterns than just normal searching for a substring.

In Python, the module “re” is used to work with Regular Expressions.

#tutorial #python #webdev #regex #regular expressions #python tutorial

Regex in Python Using The re Module
1.30 GEEK