case insensitive replace

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

all-

How do you a case insensitive replace on a string in .NET?? Preferrably
using the StringBuilder object.

I appreciate it.
Thanks.
 
you could just convert everything to either lowercase or uppercase before
you do the replace.
 
[This followup was posted to microsoft.public.dotnet.framework and a
copy was sent to the cited author.]
You can use the string class replace method. You specify a modifier of
'i' (ignore case)
 
Back
Top