Course
Regular Expressions in Python
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Prerequisites
Intermediate PythonBasic Concepts of String Manipulation
Formatting Strings
Regular Expressions for Pattern Matching
Advanced Regular Expression Concepts
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
Is prior experience with regular expressions needed to take this course?
No. The course starts with basic string manipulation like slicing and concatenating, then builds up to regular expression syntax. Familiarity with Intermediate Python is sufficient.
What real datasets are used to practice pattern matching?
You will work with a movie review dataset for string manipulation and a collection of streamed tweets used for sentiment analysis to practice regular expression techniques.
Which Python string formatting methods does this course compare?
The course covers positional formatting, f-strings for embedding expressions inside string constants, and the Template class, comparing the advantages and disadvantages of each.
What advanced regex topics are included beyond basic matching?
You will learn grouping with parentheses, backreferences to match previously captured text, lookahead and lookbehind assertions, and greedy versus lazy quantifiers.
How would these regex skills apply in a data science workflow?
Regular expressions are essential for cleaning messy text data, extracting structured fields from unstructured sources, and preparing corpora for natural language processing pipelines.
Join over 19 million learners and start Regular Expressions in Python today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.