Test, validate and match regular expressions
Matches and captures alternating runs of non-alphanumeric characters (special symbols, punctuation, whitespace) followed by runs of letters and digits. With the global flag, it scans the entire string, capturing each special character sequence in group 1 and each alphanumeric sequence in group 2. Useful for separating or detecting special characters within text, input validation, sanitization, and tokenizing mixed-content strings.