Matching patterns
module 5
week 7
characters
patterns
regular expressions
strings
Match patterns in character strings
We’ll use the {stringr} package to match patterns with regular expressions.
Learning objectives
- Get a basic familiarization with regular expressions
- Learn to detect, extract, and replace pattern matches
- Learn to split strings
Pre-meeting
To prepare for this class meeting, please do the following:
- Read R4DS2 16
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises
For next class meeting
- Read R4DS2 17