Regular expression to replace html
Posted: Mon Nov 15, 2004 10:47 am
Hi,
I am creating a site with a lot of pages with (almost) the same content, and a lot of pictures on it. I want to make it easy to change these pictures for a selected group of people. For example, by replacing my html-code:
by:
or something like that. My question is, can this easy be done using a regular expression, or another way, and does someone know a script that already does something like that...
Thanks in advance,
Willem
I am creating a site with a lot of pages with (almost) the same content, and a lot of pictures on it. I want to make it easy to change these pictures for a selected group of people. For example, by replacing my html-code:
Code: Select all
<a href="./test.html"><IMG SRC="./images/white.gif" width=127 height=98 name="" border=0 style="display:block;"></a>Code: Select all
url:<INPUT TYPE="TEXTFIELD" VALUE="./test.html"><INPUT type=file>width:<INPUT TYPE="TEXTFIELD" VALUE="127">height:<INPUT TYPE="TEXTFIELD" VALUE="98">Thanks in advance,
Willem