|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to find a sub stringHello,
I want to find a function to judge whether a sub string (str2) is in a string (str1). It will be much better if it works in case-sensitive mode and non-case-sensitive speparately. Is there a function like this? Any help on this, is greatly appreciated. String.IndexOf(System.String)
If you want case-insenitive, convert both the string and search string to upper or lower case. -- Show quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer Complex things are made up of Lots of simple things. "YD" <yangdong1***@gmail.com> wrote in message news:u91JYpf5FHA.3760@TK2MSFTNGP14.phx.gbl... > Hello, > > I want to find a function to judge whether a sub string (str2) is in a > string (str1). It will be much better if it works in case-sensitive mode > and non-case-sensitive speparately. > > Is there a function like this? > > Any help on this, is greatly appreciated. > |
|||||||||||||||||||||||