C# character non alfa numeric check contain

It’s more undestandable, if you specify in regex, what your string SHOULD contain, and not what it MUST NOT.

In the example above:

^ – means start of the string
[]* – could contain any number of characters between brackets
a-zA-Z0-9 – any alphanumeric characters
\s – any space characters (space/tab/etc.)
, – commas
$ – end of the string