Skip to main content
Anaconda Learning
Toggle menu
Menu
Back to anaconda.com
< Back to anaconda.com
Course Catalog
Sign In
Regular Expressions in Python
Powerful pattern matching for text data.
Watch Intro Video
40
Getting Started
(04:11)
Getting started with Anaconda Notebooks
Course overview and learning objectives
Regular Expressions (RegEx) Overview
(19:58)
What are regular expressions?
Matching text with regular expressions example
Use cases
Exercise: Matching text
Matching Literals and Character Ranges
(29:08)
Literals
Metacharacters
Character ranges
Character ranges continued
Digit, word, and whitespace characters
Exercise: Matching pattern
Matching Start and End of Lines and Strings
(16:45)
Full matches versus partial matches
Start of string and line
End of string and line
Forcing full matches
Exercise: Lines
Repeating Patterns with Quantifiers
(19:04)
Fixed quantifiers
Min/max quantifiers
Shorthand quantifiers
Greedy versus lazy quantifiers
Exercise: Quantifiers
Matching Anything with Wildcards
(14:58)
Wildcards
Combining wildcards with quantifiers
Exercise: Wildcards with quantifiers
Grouping and Alternating Patterns
(11:18)
Grouping
Alternators
Prefix and suffix
Exercise: Grouping
Searching, Splitting, and Replacing Text
(14:40)
Compiling a RegEx
Scanning a document
Splitting data
Replacing data
Exercise: Splitting text
RegEx in pandas, SQL, and NLP
(13:38)
pandas
SQL
Natural Language Processing (NLP)
Exercise: Filtering records
Conclusion
(01:46)
Summary
End of course survey