How can I build a regular expression that will match a string of any length containing any characters but which must contain 21 commas?
Might be faster and more understandable to iterate through the string, count the number of commas found and then compare it to 21.