HTML Parsing

S

SKG

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]

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

Try this

<a.+?href\s*=\s*((["](?<xref>[^"]+)["][^>]*[>])|(['](?<xref>[^']+)['][^>]*[>
])|((?<xref>[^\s\\>]+)[^>]*[>]))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top