Remove characters from string

  • Thread starter Thread starter Shapper
  • Start date Start date
S

Shapper

Hello,

I need to remove the characters { '/', '@', '+', ... } from a string.

I could use String.Replace but then I might have a lot of chained replaces.

What is the best way to do this?

Thank You,
Miguel
 
I need to remove the characters { '/', '@', '+', ... } from a string.

I could use String.Replace but then I might have a lot of chained replaces.

What is the best way to do this?

If best means simplest code, then I would say Regex.Replace!

Arne
 
Back
Top