Test, validate and match regular expressions
This regex matches any non-empty string that contains at least one special character, defined as an underscore or any character that is not a word character (alphanumeric plus underscore). It uses a positive lookahead to assert the presence of such a character, then matches the entire line. Common use cases include password strength checks or input validation to ensure special characters are present.