Regex field in constructor