Welcome Guest Search | Active Topics | Members | Log In | Register

Retrieve tag A from html Options · View
Matteo Migliore
Posted: Friday, October 05, 2007 7:43:33 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 05/10/2007 19:43:33
Date: Fri, 5 Oct 2007 17:43:33 +0200

Hi.

I need a regular expression to extract all tag A from HTML
code. I need the href and text as two disting objects.

Suggestions?

Thx! ;-)
Matteo Migliore.
Martin Honnen
Posted: Friday, October 05, 2007 8:14:06 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 05/10/2007 20:14:06
Date: Fri, 05 Oct 2007 18:14:06 +0200

Matteo Migliore wrote:

> I need a regular expression to extract all tag A from HTML
> code. I need the href and text as two disting objects.

Why do you want to use regular expressions to parse HTML when there are
APIs for that like SgmlReader
<URL:http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC>


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.104 seconds.