I need a regex pattern that accepts only comma separated values for an input field.
For example: abc,xyz,pqr.
It should reject values like: , ,sample text1,text2,
I also need to accept semicolon separated values also. Can anyone suggest a regex pattern for this ?