I have this string: \"123-456-7\"
I need to get this string: \"1234567\"
How I can replace occurrences of \"-\" with an empty string?
This should do the trick:
String st = "123-456-7".Replace("-","");