MY Regex :
/^[\s]*(\'[a-zA-Z0-9_:\.\-\s\\\/\(\)\&\>\<]+(\,+\s*[a-zA-Z0-9_:\.\-\s\\\/\(\)\&\>\<]+)*\'[\s\,]*)*$/
I want it to Validate ::
'A','B,C','D','E,F','G','H'....... // like wise no specific pattern
Here, 'A' can be a word or sentence and same goes for other Letters mentioned above.
Invalid cases ::
A','B' // Missing single quote
'A''B' // Missing comma
A',B' // Missing single quote
'A','B // Missing single quote
'A','B', // Extra comma
'A',,'B' // Double comma
,'A','B' // Comma at beginning
Some of these invalid cases are not being catched by my REGEX. What should I change in my regex?
I have tested it on https://regex101.com/