makes regex a class var