
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 core Python regular expressions concepts, including capturing, named, and non-capturing groups, and substring extraction, with examples on displaying the last four characters and matching rule numbers.
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.
Master Python regular expressions by using the pipe meta character to match alternatives, and extract group contents with findall and non-capturing groups.
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.
Master Python regular expressions: explore the question mark meta character through examples that show writing a single regular expression to match two words, extract matches, and view the output.
Explore the question mark meta character as an optional quantifier and build a Python regex that matches four-digit numbers and extracts four values.
Explore the asterisk meta character in regular expressions, learn how it matches zero or more and zero or one occurrences, and see examples that match all shown patterns.
Master the asterisk meta character in Python regular expressions by seeing how zero or more repetitions match four example cases and how to extract matches with code.
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.
Master Python regular expressions demonstrates using a character class to match uppercase then lowercase letters, extract two names with a single regex, find all matches, and display the output.
Master Python regular expressions by learning the dot meta character, which matches any character except a slash. See example code that extracts those characters and displays the output.
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.
Explore a meta character example to extract values with a single regular expression in the Master Python regular expressions course, including escaping with a backslash.
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.
Explore positive character class in Python regular expressions with example 1, showing how to craft a single regex to match and extract two words and view the output.
Explore positive character class in Python regular expressions by extracting four numbers using a single regular expression that matches lowercase letters and following three characters, with example code and results.
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.
Master python regular expressions explains shorthand character classes through an example that extracts two names with a single regex, matching an uppercase letter followed by lowercase letters and a space.
Discover how to match repetitions with regular expressions by constructing concise patterns to recognize multiple numbers, using examples that illustrate different repetition concepts.
Apply repetition type 1 to match exactly three-digit numbers such as 300 and 400, then extract and display all numbers found by the regular expression pattern.
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 the basics of python regular expressions, including positive and negative lookahead and lookbehind, and learn how to extract names based on preceding or following characters and initials.
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