Windows Develop Bookmark and Share   
 index > Windows Forms General > parsing html...
 

parsing html...

Hi,

Is there any good code out there showing how to parse an html file using c#? I want to have access to tags, attributes, text, tec...

Any help?
Thanks
MigrationUser 1  Sunday, July 18, 2004 3:27 PM
we do afair amount of extracting elements out of a page using regular expressions
MigrationUser 1  Sunday, July 18, 2004 3:36 PM
can you show an example of how to use that? in an actual html statement?

thanks again
MigrationUser 1  Sunday, July 18, 2004 5:05 PM
ok, found a way of doing it with regular expressions: "<(.|\n)*?>", but look in this statement:

<title>blabla</title>

it would only give me blabla. Whats the regular expression to get title ?

Thanks
MigrationUser 1  Monday, July 19, 2004 6:19 AM
Actually you can match it using this expression <title>(?<data1>.*?)</title>
GreyWolf  Tuesday, July 11, 2006 6:52 PM

You can use google to search for other answers

Custom Search

More Threads

• call window login dialog in window form
• About cross thread modal dialog
• Listview Control - Odd Display Issue when Scrolling
• color datagrid view cell
• Shutdown application at a specific time
• Getting info from 2 db's into a datagrid
• Form looses focus
• Wanted : SnapToGrid in designer context menu, double-click form tab to switch layout/code view, more DataGrid options - please!
• WinForms application started when noone logged in
• Using LayoutEngine with a FlowLayoutPanel