strings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • csharpula csharp

    strings


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


    *** Sent via Developersdex http://www.developersdex.com ***
  • Jon Skeet [C# MVP]

    #2
    Re: strings

    On Jul 7, 9:52 am, csharpula csharp <csharp...@yaho o.comwrote:
    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

    Comment

    Working...