Enum and Regex study