newbie : get the whole word from the string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i would like to ask if this is possible and how can i do it :


i have a string :


string address = "You can find me in RR_com and..."

i would like to get the whole "RR_com" word not the indexof of the word.


thank you.
 
Hi,

You can grab words and chunks of strings using String.Substring(start,
end), although you would need to know what you are searching for.

To split a string into words you can use String.Split(' ') or similar.
The string will be split whenever a space character is found.

I'm not sure I fully understand your question though.
 
Newbie,

I know how to find that word when I know that whole word, however that is a
little bit without sense, so can you explain it a little bit more?

Cor
 
Hi
Well, if you know its index or can get it, you can use the Substring
function to get it in a new sting
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Back
Top