Updating regular expression magic to use in Software Carpentry lessons