nipahoy
Jul 28th, 2005, 09:25 AM
Is there a string function in VB.net which lets you select text between Strings?? For example:
str1 = "This boy's name is Mike, and he likes to play soccer. Mike also likes to play basketball. This boy's name is John, and he likes to play Hockey. John also likes to play football."
I need to select out the names, and the 2 sports they each like to play....
Now, I've tried using str1.IndexOf() with str1.Substring(), but it wasn't very accurate. Has anyone come across something similar??
Thanks.
str1 = "This boy's name is Mike, and he likes to play soccer. Mike also likes to play basketball. This boy's name is John, and he likes to play Hockey. John also likes to play football."
I need to select out the names, and the 2 sports they each like to play....
Now, I've tried using str1.IndexOf() with str1.Substring(), but it wasn't very accurate. Has anyone come across something similar??
Thanks.