Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > html meta tags!

Reply
Thread Tools

html meta tags!

 
 
Abid
Guest
Posts: n/a
 
      04-11-2007
Hi,

I need to parse out the META Tags in any HTML document or can say any
webpage...specifically I am interested in META keyword and META
description tags...can anyone please let me know the Regular
Expression for that...I will really appreciate it.

Thanks in advance.

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      04-11-2007
On Apr 11, 10:14 pm, "Abid" <abidsultan...@gmail.com> wrote:
> Hi,
>
> I need to parse out the META Tags in any HTML document or can say any
> webpage...specifically I am interested in META keyword and META
> description tags...can anyone please let me know the Regular
> Expression for that...I will really appreciate it.
>
> Thanks in advance.


something like

(?<=<meta\s+name=\"?description\"?\s+content=\"?). *?(?=>)

and

(?<=<meta\s+content=\"?).*?(?=\sname=\"?descriptio n\"?\s?\>)

 
Reply With Quote
 
 
 
 
Abid
Guest
Posts: n/a
 
      04-17-2007
On Apr 11, 2:25 pm, "Alexey Smirnov" <alexey.smir...@gmail.com> wrote:
> On Apr 11, 10:14 pm, "Abid" <abidsultan...@gmail.com> wrote:
>
> > Hi,

>
> > I need to parse out the META Tags in any HTML document or can say any
> > webpage...specifically I am interested in META keyword and META
> > description tags...can anyone please let me know the Regular
> > Expression for that...I will really appreciate it.

>
> > Thanks in advance.

>
> something like
>
> (?<=<meta\s+name=\"?description\"?\s+content=\"?). *?(?=>)
>
> and
>
> (?<=<meta\s+content=\"?).*?(?=\sname=\"?descriptio n\"?\s?\>)


Thanks alot, It helped me very much.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Meta-Meta-Programming, revisited Erik Veenstra Ruby 21 07-25-2006 10:26 PM
Meta-Meta-Programming Erik Veenstra Ruby 29 02-08-2006 08:22 PM
Meta methods to govern meta data? Duane Johnson Ruby 6 10-28-2005 03:57 AM
how do I dynamically change an html meta tag from my code behind code? ntm ASP .Net 2 01-19-2004 05:00 PM
META NAME and META HTTP-EQUIV Nym Pseudo HTML 1 09-26-2003 09:13 AM



Advertisments