Test, validate and match regular expressions
This regex matches a string containing two words separated by a hyphen with surrounding spaces, followed by another hyphen with spaces and any trailing text. Each segment is captured: the first word, the second word, and the remaining text. It's useful for parsing structured strings like log entries or data records.