I need a regex expression that will check that the string does not have all spaces and that it does not contain a comma character (,).
I was able to find examples that do this or that, but not both:
^(?![\s,]*$).+ , to guarantee not all spaces and
^(.(?!,))*$ to exclude commas.
I have no way to use the code, this is a restriction on the field in the form.
source share