Build, test, and debug regular expressions
This regex matches a string of 6 to 20 characters composed exclusively of a defined set: punctuation (colon, semicolon, comma, hyphen, at sign, period, apostrophe), letters (both cases, including accented â, é, è), digits, and whitespace. It's commonly used to validate short user inputs like names or IDs, ensuring only allowed characters and enforcing a minimum and maximum length. The global flag doesn't affect this anchored pattern.