
Explore how regular expressions define text matching patterns and learn to extract emails, phone numbers, zip codes, and credit card numbers using pattern matching.
Explore how regular expressions reduce code and extract values from a text file with just a few lines, contrasting regex-based extraction with longer non-regex approaches.
Learn how to split a sentence into words using Python's regular expressions and the split functionality, by matching spaces with a regex pattern and applying the split method.
Learn numbered groups in Python regular expressions to extract a two-character branch and a four-character number, and access the first and second groups from the match object.
Explore non capturing groups in python regular expressions, using (?:) to group patterns like phone numbers and area codes without capturing them, while capturing groups extract sequences with findall.
Master Python regular expressions by learning the five key characters, including the question mark and asterisk, and how to match any character except a slash, with clear explanations.
Explore how the pipe meta character matches three words in python regular expressions, build a single regular expression using capturing and noncapturing groups, and extract all matches with find all.
Explore the plus meta character in Python regular expressions, and learn to extract values and numbers from text using pattern examples and outputs.
Discover character classes in regular expressions, including matching lowercase letters, uppercase letters, and digits, and learn the types of positive, full, and shorthand character classes with examples.
Learn how a single regular expression using a positive character class matches four words and extracts them in Python, as shown in the example code.
Explore negative character classes in Python regular expressions and learn how they match any character not in a specified set, with examples involving consonants and digit sequences.
Explore shorthand character classes to match non-space characters and craft a regular expression that extracts email addresses from text, demonstrating with a simple two-email example.
Explore greedy and non-greedy matching in Python regular expressions, showing how default greediness yields the maximum match and how patterns extract groups in example code.
Explore back references in Python regex, including numbered and named back references. Learn how these references connect captures to later matches.
Master Python regular expressions teaches using numbered back references to match and extract two identical numbers, demonstrating pattern recognition and practical code examples.
Explore named back references in Python regular expressions, using named groups to extract the two numbers from four numbers in a pattern, with example code.
Explore positive lookahead assertions in Python regular expressions, learn to extract specific names followed by an underscore using a case-insensitive pattern, and apply find all to capture the matching results.
Explore positive lookbehind assertions in Python regular expressions, extracting numbers that are preceded by specific characters, with code examples and explained outputs.
Regular Expressions are strings that define text matching patterns. This course explains all the concepts of regular expressions in Python through simple and multiple examples so that it will be easy for you to understand.
Each case study consists of exercises . By solving these exercises, you will be able to write regular expressions for different kinds of text data.
This course consists of three parts.
Part I
1.Introduction to regular expressions
2.RE Module Basics
3.RE Module Functions
4. Groups
5. Special Characters
6. Matching Repititions
7. Greedy and Non-Greedy Matching
8. Character Classes
9. Back References
10. Look Ahead and Look Behind Assertions
Part II (Case Studies with Exercises)
Urls
Dates
Numbers
Emails
Part III(Projects)
1.Build a Simple Password Checker