html meta tags!

A

Abid

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.
 
G

Guest

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=\"?description\"?\s?\>)
 
A

Abid

something like

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

and

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

Thanks alot, It helped me very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top