Flickr logo
More of Luca Mauri's photos
blank

Section's icon A snippet
Extract ED2K links
Codename: finded2k

Using Regular Expression functions, this class allow you to scan a bunch of text (for esample and HTML page) to extract all the links in ED2K format.
The Collection is exposed by the class.
Separatore

Following the full code of the snippet
You can copy and paste it from here, otherwise you can download it in .snippet file format by clicking here.

                Imports System.Text.RegularExpressions

Public Class clsFind
    Dim mText As String
    Dim mLinksCollection As MatchCollection

    Public ReadOnly Property originalText() As String
        Get
            Return mText
        End Get
    End Property
    Public ReadOnly Property linksCollection() As MatchCollection
        Get
            Return mLinksCollection
        End Get
    End Property

    Sub New(ByVal sourceText As String)
        Dim reLink As Regex

        mText = sourceText

        reLink = New Regex("ed2k://.*?/", RegexOptions.IgnoreCase Or RegexOptions.Singleline)
        mLinksCollection = reLink.Matches(mText)

    End Sub
End Class                
            

Go back to snippet page.

Gear B/N Risultato del processo OK
blank

Ajax-enabled news - Beta

Ajax News temporaneamente sospese in attesa della nuova versione.

Tag Cloud - Beta

AddThis Bookmark

Il pulsante di AddThis permette di aggiungere un segnalibro per questa pagina nei più diffusi siti internet.

Licenza

Creative Commons License
Il contenuto di questo sito internet, se non diversamente specificato, è pubblicato sotto una Licenza Creative Commons.

The content of this website is published under a Creative Commons License, unless otherwise stated.

Site Meter

ClustrMaps

Locations of visitors to this page

Elenco Feed

Questo file OPML contiene l'elenco aggiornato di tutti i feed RSS disponibili sul sito.

OPML rect

amung.us

hit counter

Random Quote

«My name is Molly Caffrey, and I work for the Federal Government. I deal in worst case scenarios, the unthinkable.
On September 16th, 2005, the unthinkable happened.
An extraterrestrial object appeared off the bow of a naval freighter. The entire crew was exposed to a high frequency signal. Some died instantly. Others began to change.
They are now stronger, more resilient. They dream of alien landscapes and they are driven by the impulse to infect others. Several of the crewmen are now loose in the United States.
They will strike anytime, anyplace, anyone. Their goal: to turn us into them.
But I have a plan to stop them. That plan is called Threshold

Molly Caffrey
Threshold - [Episode prologue]

Leggi tutte le citazioni

Random Fact

Il numero totale delle particelle nell'universo è circa 1080.
Sulla Terra esistono circa 1030 cellule viventi

von Bertalanffy (1969)

Leggi tutte le curiosità

aNobii Books

Sorting Hat

i'm in ravenclaw!
be sorted @ nimbo.net

LM CubeCopyright © 2000 - 2010 Luca Mauri. All rights reserved
Note sui contenuti del sito.


Generated by Luca Mauri's xCMS xCMS | ASP.net 2.0 powered Powered by ASP.net 2.0

Technology Blogs - BlogCatalog Blog Directory


Standard compliant: Valid Sitemaps | W3C CSS Valid | W3C XHTML Valid | RSS 2.0 Valid | OPML checked by validator.opml.org. | AJAX Powered


This page is generated by Luca Mauri Luca Mauri's xCMS
eXperimental Content Management System version 1.5.0.11260
Current date and time on server Fri, 10 Sep 2010 14:51:02 GMT
Took 0,1816392 seconds to be created