I have a requirement where I need a regex which
- should not repeat alphabet
- should only contain alphabet and comma
- should not start or end with comma
- can contain more than 2 alphabets
example :-
A,B --- correct
A,B,C,D,E,F --- correct
D,D,A --- wrong
,B,C --- wrong
B,C, --- wrong
A,,B,C --- wrong
Can anyone help ?