This regex engine is taken, with thanks, from: https://code.google.com/p/mrab-regex-hg/

It is licensed under the Python Software Foundation License

Author: Matthew Barnett