separated Regex from class