Build, test, and debug regular expressions
Matches any single character that is not an uppercase or lowercase letter, a digit, or a hyphen. With the global flag, it's typically used in replace operations to strip out spaces, punctuation, and special symbols from strings. Common use cases include sanitizing text into URL slugs, cleaning usernames or identifiers, and validating that input contains only hyphenated alphanumeric characters.