Link to home
Start Free TrialLog in
Avatar of zattz
zattz

asked on

.NET RegExp to extract meta tags from html

Hi,

Can somebody show me how to use a .NET regular expression to extract the meta tags from an html file? I know absolutely nothing about regexps.

The source is:

<meta name="keywords" content="blah blah blah">
<meta name="description" content="this is a description">

But it can also be written with the content part first, and name afterwards:

<meta content="blah blah blah" name="keywords" >
<meta content="this is a description" name="description" >

thanks:)



ASKER CERTIFIED SOLUTION
Avatar of gbzhhu
gbzhhu
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zattz
zattz

ASKER

Apologies for the delay