Question how to search and extract info from textbox

saichong

Member
Joined
Nov 21, 2009
Messages
10
Programming Experience
Beginner
Hi all

i have a text box with some codes

what i want is to extract all of the codes that show images name

for example i have

welcome
1
[imagename]abc[/imagename]
[imageurl]http://xxx.com[/imageurl]
2
[imagename]defjhij[/imagename]
[imageurl]http://xxx.com[/imageurl]
3
.....

so i want to extract the names of the images between the brackets [imagename][/imagename]
 
tis coding is used to separate each word after a comma and wil store in combobox . check it out .

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim s As String = TextBox1.Text.Trim
Dim words As String() = s.Split(New Char() {","})
Dim word As String
ComboBox1.Items.Clear()
For Each word In words
ComboBox1.Items.Add(word)
Next


End Sub
 
Back
Top