Link Search Menu Expand Document

Introduction

In this workshop, we will learn about regular expressions (regex). We will go over what they are and when to use them and then have lots of time to practice.

We assume some initial experience with R. If the material covered in beginner part 1 and part 2 are familiar, the topics covered today should be managable.

The library also has a general regex workshop that provides helpful information about regex in general, which will help familiarize you with the regex syntax we cover in this workshop.

Being familiar with the tidyverse package may be beneficial, but we do not expect all participants to be familiar with the tidyverse syntax.

Learning objectives

At the end of this workshop, you will have learned:

  1. What regular expressions are.
  2. When is using regular expressions is useful.
  3. Gotten some hands on practice with regular expressions in R.

Schedule

0:00 Welcome and using Zoom
0:05 Introduction
0:10 What are regular expressions
0:15 When to use regular expressions
0:30 Practice time
1:00 Wrap-up and Discussion

Resources

Test regular expressions here https://regex101.com/ and/or here https://regexr.com/

General regex workshop by the UBC library https://ubc-library-rc.github.io/intro-regex/

Similar workshop to this one for more practice here https://www.datacamp.com/tutorial/regex-r-regular-expressions-guide