Test, validate and match regular expressions
This regex matches text in the format 'Title (Subtitle)', capturing both parts into separate groups. It matches one or more word characters, hyphens, or spaces, followed by a space and a parenthesized section containing similar characters. Common use cases include extracting book titles with edition notes, movie names with version info, or any label followed by a clarifying parenthetical. The global and multiline flags allow finding all such patterns across every line in a document.