ylliX - Online Advertising Network
Vertex AI - Antrophic and Mistral models: Why does it require Imegen access?

How can I have either just ONE hyphen OR comma delimited strings in a regex expression


I tried this ^[-A-Za-z0-9]+(,[-A-Za-z0-9]+)*$ and its perfect for comma delimited strings but I’m not able to create an expression that should give me either a SINGLE hyphen or a comma delimited list of strings.

I tried regex generator online as well but nothing to my avail.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *