[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1448
  • Last Modified:

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



0
zattz
Asked:
zattz
2 Solutions
 
gbzhhuCommented:
0
 
mmarinovCommented:
Hello zattz,

Check if this works for you: http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20988703.html

Regards,
Martin
0
 
zattzAuthor Commented:
Apologies for the delay
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now