I need to find a regular expression which will support the following format
.[A-Z-a-z]/-
Would ^(\.[A-Za-z]\/-?)+$ work fine ?
i.e
.V/-.E/-
BUT THE - IS OPTIONAL
I trield ^(\.[A-Za-z]\/-)$
but i cannot seem to find a regular expression to support the - at the end
Could someone show me where i am going wrong please.
Thanks
If you want the regex to match the string
".V/-.E/-", you could use this: