Fetched from knubbis-ops
to make it a bit more apparent that the regex is to be used with re.match and not re.search