get string between two string
- Tình trạng: Closed
- Giải thưởng: $30
- Các bài thi đã nhận: 18
Tóm tắt cuộc thi
hi i have txt file in unicode format and i wanna to get all string between > and " and post it on listbox
i try to use regex and her the attached txt file i wanna vb.net code and what i wanna is just the out put to be all the word between > and "
and her example of my code
'href="https://www.facebook.com/ibrahim.aouni.1?fref=pymk" class="_8o _8t lfloat">
'On Error Resume Next
ListBox1.Items.Clear()
Dim rurl As New Regex("href=""https://www.facebook.com/."" class=""_8o _8t lfloat"">")
'/ajax/hovercard/user.php?id=100002117233600">
'Dim rname As New Regex(">.*")
Dim rname As String = "(?>).*?(?)"
Dim matches As MatchCollection = Regex.Matches(sourcecode1, rname)
For Each itemcode As Match In matches
ListBox1.Items.Add(itemcode.Value)
Next
'Dim match As Match = Regex.Match(sourcecode1, rname)
'Do While match.Success
' ' Console.WriteLine("'{0}' found in the source code at position {1}.", _
' ' match.Value, match.Index)
' ListBox1.Items.Add(match.Value)
' match = match.NextMatch()
'Loop
i onl offer 10 dollar
Các kĩ năng yêu cầu
Bảng thông báo công khai
Làm thế nào để bắt đầu với cuộc thi
-
Đăng cuộc thi của bạn Nhanh chóng và dễ dàng
-
Nhận được vô số Bài dự thi Từ khắp nơi trên thế giới
-
Trao giải cho bài thi xuất sắc nhất Download File - Đơn giản!