
 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.
|

 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/
|