Title |
Test
Find
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:
Not yet rated.
Marc-Antoine Latour
|
Source |
|
Your Rating |
|
Title: Does NOT MATCH unformatted text
Name: contactkx
Date: 7/13/2007 5:34:17 AM
Comment:
HELP!! This expression DOES NOT MATCH unformatted html text like:
<HEAD></HEAD>
<BODY>
<P><IMG alt=C:\Images\blast.gif src="file:///C:/Images/blast.gif"> <IMG alt=C:\Images\close.gif src="file:///C:/Images/close.gif"></P></BODY>
The above written in formatted pattern returns result:
<html>
<head>
</head>
<body>
<p>
<img alt="C:\Images\blast.jpg" src="file:///C:/Images/blast.jpg">
<img alt="C:\Images\close.jpg" src="file:///C:/Images/close.jpg">
</p>
</body>
</html>
Title: Does NOT MATCH unformatted text
Name: contactkx
Date: 7/13/2007 3:41:29 AM
Comment:
HELP!! This expression DOES NOT MATCH unformatted html text like:
<HEAD></HEAD>
<BODY>
<P><IMG alt=C:\Images\blast.gif src="file:///C:/Images/blast.gif"> <IMG alt=C:\Images\close.gif src="file:///C:/Images/close.gif"></P></BODY>
The above written in formatted pattern returns result:
<html>
<head>
</head>
<body>
<p>
<img alt="C:\Images\blast.jpg" src="file:///C:/Images/blast.jpg">
<img alt="C:\Images\close.jpg" src="file:///C:/Images/close.jpg">
</p>
</body>
</html>
Title: Mr.
Name: Maks Skam
Date: 7/10/2006 5:12:07 AM
Comment:
Try this: <td background="../img/img.jpg.gif">
In UNIX it`s possible.
Bad pattern
Title: Mr.
Name: Maks Skam
Date: 7/10/2006 5:11:04 AM
Comment:
Try this: <td background="../img/img.jpg.gif">
In UNIX it`s possible.
Bad pattern
Title: Thanks
Name: Jung-Il Lee
Date: 1/9/2004 12:42:47 AM
Comment:
Thank you for this source!
Title: what about other file types
Name: Bhavin
Date: 1/2/2004 7:31:04 AM
Comment:
hey how can i find all type of imgaes used in one html file. i mean jpg,gif,png etc....