Small issue: ```regex``` could possibly be renamed as it's a tuple and not just a regular expression.