case insensitive replace

M

Mark

all-

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

I appreciate it.
Thanks.
 
C

Christine Nguyen

you could just convert everything to either lowercase or uppercase before
you do the replace.
 
J

junk

[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)
 

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

Top