Feature/lpc 461 seconds for expiry

Old habit is declaring regular expressions as globals with `re.compile` and then using them later on in lieu of `re.match`. This used to be a lot quicker as the `re.match` was compiled on every call to the function. Some later python version added an internal cache to the re module which does something similar. Although the speed advantages aren't there anymore, it can be a good habit to do this if you intend to reuse the regex.