http://www.perlmonks.org?node_id=1214543


in reply to Re^3: check if string is valid with special cases
in thread check if string is valid with special cases

Ok I understand, forget about commas in the substrings.
your regex is good and its what I need except it doesn't handle an empty space case: "a,b,c, d,e" (bad case).
how can I add it to the regex?