I have a requirement to remove duplicate hyphens or simply remove them if they are not the first character on the string. I would like to use a regular expression 'replace' in Java script. I have fought with it for several hours. When I think I have it, in the end all hyphens are removed. Even the first one. Below is an example of the request.
Example: 1a-1-1 Result: 1a11 Example: -1-1b-1- Result: -11b1 Example: ---1c11- Result: -1c11