strings

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
What is the best way (c# code) to remove specific string occurence form
a string and replace it with some other?
 
What is the best way (c# code) to remove specific string occurence form
a string and replace it with some other?

Usually a call to string.Replace. In special cases (e.g. where you
want to match a pattern, or make the replacement depend on the
original string), Regex.Replace.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top