Extracted out regex as parameter