Test, validate and match regular expressions
This regex matches boolean-like values: the single letters Y or N, or the words TRUE and FALSE, regardless of case. It enforces that the entire input is exactly one of these allowed tokens, making it useful for validating user responses, query parameters, or configuration settings that expect yes/no or true/false flags.