Some l33t coding you got there... Get back on Auxilium SWG... Anyways, nice share.
|
.NET
Source - Retrieve the title of a site and add it plus the link to a ListView. & More |
(Oct 16, 2012 06:07 AM)-SiR- Wrote: or you try this (?<=\<title\>)(.*)(?=\</title\>)Exactly, with making the match non-greedy and no reason to capture that title: (?<=\<title\>).*?(?=\</title\>) Also, no need of using a loop: [img]http://rapidimg.org/server/files/507dcedc9551dVGy9IO.png[/img] siteTitle = regex.Match(siteSource).Value will work good which will return first matched value.
Is there a particular reason you are not using the WebClient.DownloadStringAsync Method (Uri) method? As for the regex since we are not wanting group values i would prefer to use a lookaround.
Really don't see any reason to over complicate things using custom delegates and invoking when the FrameWork can handle all this for us. Any way nice job :)
|
|
|
