Making RegEx class static