regex/php: how can I convert 2+ dashes to singles and remove all dashes at the beginning and end of a string?
How can I convert two or more dashes to singles and remove all dashes at the beginning and end of a string?