Matching patterns

module 5
week 7
characters
patterns
regular expressions
strings
Match patterns in character strings
Author

Jeff Stevens

Published

March 10, 2023

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:

Class meeting

  • Regular expressions
  • Detecting patterns
  • Extracting patterns
  • Replacing patterns
  • Splitting strings
  • Slides and Code

Homework after the class meeting

Wrap up this lesson

For next class meeting