How to replace occurrences of “-” with an empty string? July 27, 2023 by Tarik string r = "123-456-7"; r = r.Replace("-", "");