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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
<[^>]*\n?.*=("|')?(.*\.jpg)("|')?.*\n?[^<]*>
Description
Match any image insert in a tag . simply replace the .jpg in the pattern whit a variable of content type ex:.swf,.js,.gif and loop the pattern to retrieve all tag whit the contenttype pass trought.... Very useful when you have people uploading html document in your site and you want to retrieve all dependecy.
Matches
<td background="../img/img.jpg" > | <img src=img.jpg > | <img src='img.jpg'
Non-Matches
= img.jpg | img.jpg
Author Rating: The rating for this expression. Marc-Antoine Latour
   Displaying page 1 of 1 pages; Items 1 to 1

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