get string between two string
- Status: Closed
- Præmier: $30
- Modtagne indlæg: 18


Konkurrence Instruktioner
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
Anbefalede færdigheder
Offentlig Præciserings Opslagstavle
Sådan kommer du i gang med konkurrencer
-
Opret din konkurrence Hurtigt og nemt
-
Få tonsvis af indlæg Fra hele verden
-
Tildel det bedste indlæg Download filerne - Nemt!