Move regex as a param