S SKG Jun 7, 2004 #1 can any one help me with HTML Parsing Regular Expression or class. I need to parse all href tags with <A> elements. Thanks
can any one help me with HTML Parsing Regular Expression or class. I need to parse all href tags with <A> elements. Thanks
N Nicholas Paldino [.NET/C# MVP] Jun 7, 2004 #2 SKG, I would take a look at using MSHTML, as it will allow you to access the object model for any element you need in the document. Hope this helps.
SKG, I would take a look at using MSHTML, as it will allow you to access the object model for any element you need in the document. Hope this helps.
P Peter Rilling Jun 8, 2004 #3 Try this <a.+?href\s*=\s*((["](?<xref>[^"]+)["][^>]*[>])|(['](?<xref>[^']+)['][^>]*[> ])|((?<xref>[^\s\\>]+)[^>]*[>]))
Try this <a.+?href\s*=\s*((["](?<xref>[^"]+)["][^>]*[>])|(['](?<xref>[^']+)['][^>]*[> ])|((?<xref>[^\s\\>]+)[^>]*[>]))
J Joerg Jooss Jun 11, 2004 #4 SKG said: can any one help me with HTML Parsing Regular Expression or class. I need to parse all href tags with <A> elements. Click to expand... Check out Chris Lovett's SGML parser on GotDotNet: http://www.gotdotnet.com/Community/...mpleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC Cheers,
SKG said: can any one help me with HTML Parsing Regular Expression or class. I need to parse all href tags with <A> elements. Click to expand... Check out Chris Lovett's SGML parser on GotDotNet: http://www.gotdotnet.com/Community/...mpleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC Cheers,