Profile Image

Tools & Techniques for Digital Humanities (2019W)


070112 UE Course in Methodology - Tools & Techniques for Digital Humanities (2019W) — University of Vienna, Department of History; Instructor Dr. Maxim G. Romanov


L05 Regular Expressions - Constructing complex searches

Goals:

Introduction to regular expressions, an important semi-language for constructing searches.

image-center

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:

Digital materials:

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:

  1. Finish the practicum; make a blogpost on your website with the answers.
  2. Codecademy’s Learn Python, Unit 3-4
  3. 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, where LXX is the lesson for which the homework is submitted, YourLastName is your last name, and YourMatriculationNumber is your matriculation number.