Test, validate and match regular expressions
This regex matches word pairs separated by either a slash (with optional spaces) or the word 'or' surrounded by spaces, optionally enclosed in parentheses. It captures the two components, making it useful for parsing simple alternatives like 'yes/no', 'on or off', or '(left/right)' in text.