Re: html tags and perl
- From: Kio <ysmay13@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 Jan 2007 22:51:53 +0100
krakle@xxxxxxxxx napisa?(a):
>> I dont want to use a
>> regexp.
>
> Why not?
>
cause in some examples its not gonna work
>> for example:
>>
>> <img src="xxx.jpg"> change to <img src="zzz.jpg">
>>
>
> $file =~ s/xxx\.jpg/zzz\.jpg/g;
>
OK but i have to change the path for all the IMG SRC , JUST those !! sometimes you can have .jpg, .png or .gif etc.
you can have:
<img src="a.jpg">
<img src='a.jpg'>
<img src=a.jpg>
<img alt="a" src="a.jpg">
etc.
or even img src in JS like: src\="" whatever ...
you have to know that other tags have SRC as well, i have to change just those from IMG
Damian
.
- References:
- html tags and perl
- From: Kio
- Re: html tags and perl
- From: krakle
- html tags and perl
- Prev by Date: Re: html tags and perl
- Next by Date: Re: Style questions
- Previous by thread: Re: html tags and perl
- Next by thread: Re: html tags and perl
- Index(es):
Relevant Pages
|