How do I replace a string that contains --- to - ?
For example :
Vision & Mission
I've managed to replace space and other special characters to - and lower case the text, so the string becomes :
vision---mission
now i need another replace to replace --- to -
Of course, that should be flexible. So for example when user inputs Vision& Mission (typo intended) the replacing will generate vision--mission (two dashes), so in that case I will need to replace -- to -
so basically I need a replace technique to replace an undetermined number of dashes to only 1 dash.
Thanks