for each text between two strings VB.NET -


i trying text between 2 static strings in visual basic. example:

hello name jesse hello ........ hello name john hello ...... hello name frank hello ........ 

i want search between hello name , hello output be:

jesse john frank 

i've done research on find how 1 outcome , hope here can me.

i have

dim s string = textbox1.text dim integer = s.indexof("hello name is") dim result string = s.substring(i + 1, s.indexof("hello", + 1) - - 1) 

but wil give 1 output.

thanks.

regular expressions. need use regular expressions, i.e. system.text.regularexpressions

imports system.text.regularexpressions  dim matches matchcollection = regex.matches(textbox1.text, "hello name (\w+)") each m match in matches     console.writeline(m.groups(1).value) next 

if you're new regular expressions can give warm hug , say, "i'm sorry."