Skip to main content
2 of 2
added 1 character in body
Jamal
  • 35.2k
  • 13
  • 134
  • 238

I think this method:

RemoveSpecialCharacters(string str)

can be replaced by:

Regex.Replace(input, @"[^.\w]",string.Empty)

It will be better and you won't need to create special method.