Build, test, and debug regular expressions
This PCRE regular expression matches hyphenated words containing Unicode letters. It captures terms with one or more internal hyphens, such as 'mother-in-law' or 'state-of-the-art'. By utilizing an atomic group, it prevents regex backtracking to optimize matching performance. It is ideal for natural language processing, text extraction, and parsing compound terms.