Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 19:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Vb 2010]regex "treffer" in msgbox anzeigen

Discussion on [Vb 2010]regex "treffer" in msgbox anzeigen within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
maxasoft's Avatar
 
elite*gold: 2049
The Black Market: 350/0/0
Join Date: May 2012
Posts: 4,593
Received Thanks: 441
[Vb 2010]regex "treffer" in msgbox anzeigen

mein Code:

PHP Code:
 Dim r As New System.Text.RegularExpressions.Regex("<a title=""Farmerama"" href=""Farmerama-5138-Partner-Shop&PHPSESSID=62f2da7eb31be1846ed44926e6b31c77#statistiken"">» Statistiken</a>" vbCrLf "<a target=""_blank"" href="".*"">» Zum Shop </a>")
        
Dim matches As MatchCollection r.Matches(text
Wie kann ich den "Treffer" nun in einer Msgbox anzeigen lassen, sprich den Wert von Matches?
maxasoft is offline  
Old 10/01/2012, 19:24   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Naja MatchCollection sagts ja eigentlich schon, es ist quasi ne Ansammlung von Werten, somit würd ich es an deiner Stelle mal mit ner Schleife versuchen..
Kraizy​ is offline  
Old 10/01/2012, 19:39   #3
 
maxasoft's Avatar
 
elite*gold: 2049
The Black Market: 350/0/0
Join Date: May 2012
Posts: 4,593
Received Thanks: 441
Quote:
Originally Posted by Kraizy​ View Post
Naja MatchCollection sagts ja eigentlich schon, es ist quasi ne Ansammlung von Werten, somit würd ich es an deiner Stelle mal mit ner Schleife versuchen..
Ich weiss aber nicht, wie genau ich das in STRING konvertiere...
maxasoft is offline  
Old 10/01/2012, 19:42   #4
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Die IntelliSense ist ein sehr guter Freund. Gibst du einen "." ein, bekommst du Vorschläge. Hast du das mal ausprobiert?

PHP Code:
for each m as match in matches
   msgbox
(m.?)
next 
Das Fragezeichen wirst du wohl noch selbst ersetzen können..
Kraizy​ is offline  
Reply




All times are GMT +1. The time now is 19:46.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.