Refactor all pre-compiled regexp to package level vars
Addresses #8057

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
Merge pull request #8059 from estesp/8057-refactor-regexp-to-package-var

Refactor all pre-compiled regexp to package level vars