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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With