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

I think this method: RemoveSpecialCharacters(string str)
can

RemoveSpecialCharacters(string str)

can be replaced by: Regex.Replace(input, @"[^.\w]",string.Empty)
it

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

It will be better and you don'twon't need to create special method )).

I think this method: RemoveSpecialCharacters(string str)
can be replaced by: Regex.Replace(input, @"[^.\w]",string.Empty)
it will be better and you don't need to create special method ))

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.

Source Link

I think this method: RemoveSpecialCharacters(string str)
can be replaced by: Regex.Replace(input, @"[^.\w]",string.Empty)
it will be better and you don't need to create special method ))