
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.
Install and import the audio module to use the re module basics, write regular expressions, create a function using a pattern object, extract a real number, and display the output.
Explore the six functions—match, find, find all, and split—in Python regular expressions, with explanations of how each works and practical examples.
Master Python regular expressions with findall, which returns all matches as a list or an empty list if none, and compare it to find, search, and match.
learn how finditer() searches for matches anywhere in a string and returns match objects for all substrings, highlighting extracted numbers and their start positions and spans.
Explore how the sub function uses a regular expression to replace matched substrings with a replacement string, returning the modified text. See real numbers replaced with stars as a demonstration.
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.
Master Python regular expressions by using named groups to access data by name instead of numbers. This improves readability and simplifies extracting values like branch or role.
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.
Master Python regular expressions teaches the pipe meta character for alternation, showing how to combine patterns with pipes to match multiple values and extract numbers from text with code examples.
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.
Learn how the question mark meta character matches zero or one occurrences in Python regular expressions, and see a single regex that extracts two-digit and three-digit numbers from text.
Explore the question mark meta character as an optional quantifier and build a Python regex that matches four-digit numbers and extracts four values.
Learn how metacharacters like plus, question mark, and asterisk express one or more or zero occurrences and how to extract matches with code using a regex object.
Explore the plus meta character in Python regular expressions, and learn to extract values and numbers from text using pattern examples and outputs.
Learn to write a regular expression to extract four values from text, including meta characters. Escape special characters with a backslash and apply zero or one quantifier, using example code.
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 positive character classes in Python regular expressions use square brackets to match one of the specified characters, such as vowels or digits, with practical 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.
Explain how shorthand character classes in Python regular expressions work, including \d, \D, \w, \W, \s, and \S, and show how they represent digits, non-digits, word characters, spaces, and non-spaces.
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 the {m,n} repetition type in python regex, showing how a pattern matches a minimum and maximum number of repetitions, extracts four-digit numbers, and displays the matched values with code.
Learn to use Python regular expressions with repetition type 3, matching a minimum number of digits using the {m, } pattern and extracting all numbers with findall.
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.
Master Python regular expressions explains non-greedy matching with the question mark to obtain the minimum possible match, contrasting it with greedy patterns and showing how to extract the shortest substring.
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.
Learn number back references and how to format a landline number using regular expressions, groups, and replacements with code examples in Python.
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 using named back references in Python regular expressions to capture groups and reference them in replacements, formatting numbers with area codes via the substitute function and named groups.
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.
Master Python regular expressions teaches negative look ahead assertion to extract numbers not followed by letters, with example code demonstrating matching digits and excluding alphabetic followers.
Explore positive lookbehind assertions in Python regular expressions, extracting numbers that are preceded by specific characters, with code examples and explained outputs.
Explore the negative look-behind assertion in Python regular expressions to extract numbers not preceded by the character C, with code examples and output demonstrations.
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