Build, test, and debug regular expressions
Matches the literal 'CN=' prefix (non-capturing group) followed by one or more word characters (letters, digits, underscores), capturing the name portion in group 1. Commonly used to extract Common Name values from LDAP Distinguished Names, X.509 certificate subjects, or Active Directory paths. The global flag finds all CN occurrences throughout the input. Note that \w+ stops at non-word characters like spaces or commas.