Build, test, and debug regular expressions
Matches any non-whitespace character followed immediately by a hyphen, capturing the character in group 1. Commonly used to detect soft hyphens or hyphens attached to word characters, such as when rejoining words split across line breaks in extracted PDF or OCR text. With the global flag it finds every occurrence, and the insensitive/unicode/dotall flags broaden matching across cases and characters.