Test, validate and match regular expressions
This regex matches bracketed confirmation patterns such as (yes/no), [no,yes], or <yes,no> with optional additional comma-separated or slash-separated options. It is useful for parsing user interfaces, survey data, or any text where a yes/no choice is presented within parentheses, brackets, or angle brackets. The global flag allows finding all occurrences in a string.