develooper Front page | perl.fwp | Postings from March 2002

regex for html <img...> tags

From:
Kim Schulz
Date:
March 17, 2002 06:39
Subject:
regex for html <img...> tags
Message ID:
20020317142714.13848.qmail@fe170.worldonline.dk

hi
I have a long string which contains some <img..> html tags ala
<img height=67 alt="" hspace=0 
src="C:\DHTMSamp\SAMPLES\Web\images\AddItem.GIF" width=72 align=baseline 
border=0>
I need to do it throughout the whole string which can contain serval img 
tags. 

I need an regex that can replace everything between src=" and
the imagename with images/ 

I want to make those stupid MS typical direct image links so they use the 
images on the server insted of those on the client machine. 

Can anyone help me?? 


thanx
Kim Schulz 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About