Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Please HELP ME - Regex multiple matches for multiple urls.

I want to get certain values from different websites which I have in one file: D:\list.txt

Here is the code that I'm using.

Sub get_names
For Each Line As String In System.IO.File.ReadAllLines(D:\list.txt)
Dim currentsource As String = New System.Net.WebClient().DownloadString(line)
Dim Jolu As String = "(?<=names:"(.*?)(blabla) 'Not here is my problem
Dim ParseNames As MatchCollection = Regex.Matches(currentsource, Jolu)
Next
Next
End Sub

Please help me! It's urgent! 😭
Loop through the values in Regex.Matches.
Lotta blood to let, peace to make, give a fuk about a check
For my shame I don't know how to do this. I searched everywhere to get a way for looping, but I still don't get it. :(
(Dec 9, 2015 01:42 AM)FKTHEking Wrote:  For my shame I don't know how to do this. I searched everywhere to get a way for looping, but I still don't get it. :(

Does "everywhere" include google?

[Image: chHP4h5.png]
Lotta blood to let, peace to make, give a fuk about a check
Your iterator should be of type Match. You can then read (typical) group 1's value.
You already have a loop for System.IO.File.ReadAllLines


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by joshythejew101Dec 29, 2020 07:57 PM 2 173 Dec 29, 2020 07:57 PM
Last Post: joshythejew101
[C#] by AstateOct 21, 2020 11:14 AM 3 182 Oct 21, 2020 11:14 AM
Last Post: Scapula™
[Shell] by zanoucimMar 21, 2019 07:55 AM 1 243 Mar 21, 2019 07:55 AM
Last Post: Tantalus