Summary and Schedule
This is an introduction to regular expressions, starting with Grep and Sed examples, and then moving to R and Python examples.
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. Regular Expressions: The pitch |
What sort of capabilities do regular expressions provide? What are regular expressions? |
Duration: 00h 10m | 2. Shell wildcards - a type of regex | Are regular expressions available in standard Unix commands? |
Duration: 00h 50m | 3. Pattern matching with grep -E, part 1 | How do we write regexs to match complex patterns in files or output streams? |
Duration: 02h 20m | 4. Pattern matching with grep -E, part 2 | How do we use predefined character classes for more complex search patterns? |
Duration: 03h 20m | 5. Find… and replace! With sed. | How do we find and replace content using regex patterns? |
Duration: 05h 20m | 6. Regexs within text editors | How can we invoke regular expressions within certain text editors? |
Duration: 05h 25m | 7. Python regular expressions | How can we invoke regular expressions using Python? |
Duration: 05h 35m | 8. R regular expressions | How can we invoke regular expressions using R? |
Duration: 05h 45m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
Participants will need a copy of all files in the data directory of this course’s repository and to be on a bash command line, cd’d to location of files.
A copy of the data may be obtained through:git clone https://github.com/csiro-data-school/regex-exercise-data.git