Refactored regular expressions that were coded inside of loops to compile them outside of the loops for performance. Also added named groups where possible to make the code more readable.
Refactored regular expressions that were coded inside of loops to compile them outside of the loops for performance.
Also added named groups where possible to make the code more readable.

mleonard87/watson-python