RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Grab tag meta from web pages
Expression
<meta[\s]+[^>]*?name[\s]?=[\s\"\']+(.*?)[\s\"\']+content[\s]?=[\s\"\']+(.*?)[\"\']+.*?>
Description
This pattern intercept meta tags, the name can be found in $1 the content value in $2.
Matches
<meta name="Author" content="xxxxxx"> <meta name="description" content="xxxxxxxxx"> <meta name="keywords" content="xxxxxxxxx"> <meta name="country" content="IT">
Non-Matches
any other tags
Author Rating: The rating for this expression. Cordisco Massimo
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials