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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
<img .+ src[ ]*=[ ]*\"(.+)\"
Description
Gets the image url in an HTML <IMG> tag.
Matches
<img src="test.jpg"> | <img align = "left" src = "test.jpg"&g
Non-Matches
unknown
Author Rating: Not yet rated. Judah Himango
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

Title: Thanks
Name: Judah Himango
Date: 9/20/2005 2:20:21 PM
Comment:
Sebastian, Thanks for the comments, glad it could help you. FYI, I've found this has not work on certain embedded images, I've yet to find one that works on all.


Title: Good!
Name: sebastian nielsen
Date: 9/20/2005 1:47:30 PM
Comment:
This was EXACTLY what i needed. I had problems with extracting a URL from an image tag to modify it, because im building a CGI proxy server, and i must modify all <img src=http://www.google.se/image.jpg> to <img src=http://www.sebpage.no-ip.com/$ENV{'script_name'}?adress=$1


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