hw09: Regex intro
- Due before the beginning of class on Monday, January 30
Nothing to submit for this homework. Just get it done!
Choose info challenge teams.
See the email from Dr. Roche sent out Thursday afternoon. Pick your team (of 3–4 within the same section), fill in the spreadsheet, and then submit the form.
Watch a youtube video about regular expressions
Here’s the link: https://www.youtube.com/watch?v=7DG3kCDx53c
The video is just 11 minutes long. We will spend the next week or so in class learning details of regex and how to use them in bash and python.
Check your comprehension
What does
\d
mean in a regular expression?- A duplicate character
- The delete key
- Any digit 0-9
- A decimal number
Click to show the answer
- Any digit 0-9
Check your comprehension
What does
.*
mean in a regular expression?- Any file extension
- Any punctuation character
- Any sequence of characters
- Syntax error
Click to show the answer
- Any sequence of characters