Page 1 of 1

Adding a wild card... or 2?

Posted: Sun Oct 14, 2007 9:28 pm
by Blenheimer
Hi There

I'm trying add some alt="" tabs to some HTML pages:

<td><img src="Images/tn_p_t_pac_wns.jpg" width=

<td><img src="Images/tn_p_t_pac_wns.jpg" alt="my text etc" width=

but the image name varies (tn_p_t_pac_wns.jpg) with different lines ie. (tn_s_p_pad_wws.jpg)

Is there anyway I can use a wild card? or anything to get around my problem without editing every line?

Many thanks


Re: Adding a wild card... or 2?

Posted: Mon Oct 15, 2007 9:55 am
by Abacre
The thing about image's file name which varies is not much important. You can use reg exp for this. For example .* means any even empty char.
The question is how do you want to add the text into alt= tag. Is this text related to image's file name? or what?