Loading ...

C# Parse Meta Tags

Who is online?  0 guests and 0 members
home  »  wiki  »  c# parse meta tags
 

Comments (1)

gorglar
gorglar said:
This works: // --- Parse the title Match TitleMatch = Regex.Match(strIn, "([^<]*)", RegexOptions.IgnoreCase | RegexOptions.Multiline); metaTitle = TitleMatch.Groups[1].Value; // --- Parse the meta keywords Match ImageSrc = Regex.Match(strIn, "", RegexOptions.IgnoreCase | RegexOptions.Multiline); metaImageSrc = ImageSrc.Groups[1].Value; // --- Parse the meta description Match DescriptionMatch = Regex.Match(strIn, "", RegexOptions.IgnoreCase | RegexOptions.Multiline); metaDescription = DescriptionMatch.Groups[1].Value
8/30/2011
 · 
 
by
  • Name:*
  • Email:*
  • Website:
Type the characters you see in the image *

Confirm

Pages

Confirm