I am trying to search if dash exist at start or the end of the string
It working fine for Chrome but unfortunately Firefox not yet support.
Here my regex code
/^(?!-)(?!.*--)[A-Za-z0-9-]+(?<!-)$/;
I expect on Firefox also catch when the word:
-test
test-
-test-