Module 5 - Regular Expression
Module 5 - Regular Expression
Expression
Matching,
Search and replace,
Patterns.
Regular Expression
[] . ^ $ * + ? {} () \ |
ab* will match ‘a’, ‘ab’, or ‘a’ followed by any number of
‘b’s.
Special Sequences
Special sequences make commonly used patterns easier to write. List of special
sequences:
Match object
https://www.w3schools.com/python/trypython.asp?
filename=demo_regex_sub2