Goals:
Introduction to regular expressions
, an important semi-language for constructing searches.
Source: https://xkcd.com/208/.
Software:
- Any text editor supporting regular expressions:
- Sublime Text (both Mac and Windows)
- EditPad Pro and Lite (Windows only)
- many other text editors for programmers support regular expressions.
Class materials:
- Presentation with all the slides:
- PDF (Windows PowerPoint Format)
- Practicum file (
Right Click > Save File as ...
):
Digital materials:
- Online references:
- Interactive tutorial: http://regexone.com/
- Cheat Sheets:
Reference Materials:
- Goyvaerts, J. and Levithan, S. (2012). Regular Expressions Cookbook. Second edition. Beijing: O’Reilly. Amazon Link.
- Friedl, J. E. F. (2006). Mastering Regular Expressions. 3rd ed. Sebastapol, CA: O’Reilly. Amazon Link
Homework:
- Finish the practicum; make a blogpost on your website with the answers.
- Codecademy’s Learn Python, Unit 3-4
- Github: publish the confirmation screenshot as a post on your new site.
Submitting homework:
- Homework assignment must be submitted by the beginning of the next class;
- Email your homework to the instructor.
- if your homework is to create a file, email it as an attachment
- if your homework is a blogpost on your website, email the link to your website and to the blogpost with your homework.
- In the subject of your email, please, add the following:
070112-LXX-HW-YourLastName-YourMatriculationNumber
, whereLXX
is the lesson for which the homework is submitted,YourLastName
is your last name, andYourMatriculationNumber
is your matriculation number.