473,320 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

html meta tags!

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.

Apr 11 '07 #1
2 995
On Apr 11, 10:14 pm, "Abid" <abidsultan...@gmail.comwrote:
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?\>)

Apr 11 '07 #2
On Apr 11, 2:25 pm, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
On Apr 11, 10:14 pm, "Abid" <abidsultan...@gmail.comwrote:
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.

Apr 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Markus Ernst | last post by:
Hello I have a regex problem, spent about 7 hours on this now, but I don't find the answer in the manual and googling, though I think this must have been discussed before. I try to simply...
3
by: jjliu | last post by:
Could someone tell me how to parse the inside of html tags by perl, such as <meta> </meta> <head> </head> <title> </title> ......... Thanks
5
by: Donald Firesmith | last post by:
Are html tags allowed within meta tags? Specifically, if I have html tags within a <definition> tag within XML, can I use the definition as the content within the <meta content="description> tag? ...
14
by: Ludwig77 | last post by:
I read that there are some tags that can be entered in a web page's meta tags in order to prevent web bot searching and indexing of the web page for search engines. What is the tagging that I...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
2
by: Mantorok | last post by:
Is it advisable to use metatags in html pages? I'm going to be creating som ehtml pages on the fly from my website and then ultimately publish them, however I want these pages to be picked up by...
2
by: Fred Chateau | last post by:
Is there a problem with the HTML 4.01 schema in Visual Studio 2005? When I set the target schema for validation to HTML 4.01, I receive closing tag errors. Example: Validation (HTML 4.01):...
1
by: ludwiga | last post by:
Hi all, I am trying to validate my first web site and most of the common errors that i am getting are the following!!! I am sure you can help me thanks in advance. <!DOCTYPE HTML PUBLIC...
0
by: Guy Macon | last post by:
Moon wrote: It isn't a question of relative vs. full URL paths in your meta tags. It is a question of following the paths (relative or full URL) in your meta tags vs. not reading the meta tags...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.