Re: html tags and perl



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

.



Relevant Pages