Moved regex engine out of folder and into main program