Library Carpentry: Introduction to Working with Data (Regular Expressions)

This Library Carpentry lesson introduces people with library- and information-related roles to working with data using regular expressions. The lesson provides background on the regular expression language and how it can be used to match and extract text and to clean data.

Teaching this lesson

This lesson is taught either as a combination with the episodes Jargon Busting and A Computational Approach in Workshop Overview (with the possibility of adding aditional optional episodes from Workshop Overview), as part of a self-organised mix-and-match training, or separately as an individual lesson.

Prerequisites

This lesson has no prerequisites. Ideally you will need a laptop and an internet connection, though this is not required.

Schedule

Setup Download files required for the lesson
00:00 1. Regular Expressions How can you imagine using regular expressions in your work?
00:35 2. Matching & Extracting Strings How can you use regular expressions to match and extract strings?
01:05 3. Multiple Choice Quiz How do you find and match strings with regular expressions?
02:05 4. Exercises How do you find and match strings with regular expressions?
02:55 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.