get string between two string
- État: Closed
- Prix: $30
- Propositions reçues: 18
Résumé du concours
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
Compétences recommandées
Tableau de clarification publique
Comment commencez des concours
-
Publiez votre concours Rapide et facile
-
Obtenez des tonnes de propositions De partout dans le monde
-
Attribuez la meilleure proposition Télécharger les fichiers - Facile !