string to replace specific characters
c#, replace
Solution
If you don't know how many repetitions there are, use `Regex.Replace`:
var res = Regex.Replace(orig, "/+", "/");
`"/+"` is a regular expression that matches one or more forward slash.
Problem
For example => iddaa///news/haber05112013.jpg Result=> iddaa/news/haber05112013.jpg I want to replace this spesific characters ("/"); But sometimes double characters ('///') , sometimes ('//') can ı replace this? Thank you