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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Head Parser
Expression
(<meta [.\w\W]*?\>)|(<style [.\w\W]*?</style>)|(<link [.\w\W]*?\>)|(<script [.\w\W]*?</script>)
Description
Parses the objects out from an html header. These objects are: meta, style, link, and script. Use with the multiline option to pull from multine scripts and styles.
Matches
<head runat="server"> <title></title> <script type="text/javascript"> // // function foo() { } // </script> <style type="text/css"> /* ** ** */ .foo { font-size : large;} </style> <script src="includes/JScript1.js" type="text/javascript"></script> <link href="includes/Stylesheet1.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> // // function foo2() { } // </script> <style type="text/css"> /* **
Non-Matches
Um....
Author Rating: Not yet rated. Tim Cartwright
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