How many ways to do a String Replace?
Posted by: Rick Strahls WebLog,
on 30 Apr 2007 |
View original
You ever do this stunt? You're in the middle of working and you realize that you need a string function. .NET makes string manipulation fairly easy but it can often be frustrating to find just the right function. The issue is that .NET string functions are scattered over several different objects. The string class is what is used most frequently but it's not a terrible complete set of string manipulation functions.
So I just needed a routine to replace the 2nd instance of a particular string match...