Made common regex into variables

Added a require_all for all the functions and variables