I've got a large area of plain HTML code. I want to filter out all the <IMG> tags which look like this:
<IMG id=64_1 onresize="parent.resize(th
198')" style="WIDTH: 198px; HEIGHT: 198px" alt="" src="http://www.domain.nl/sre/data/origineel/64_1.jpg
Of this tag I want to filter out the height, width and id and put this in a variable.
Next I want to replace the whole tag with:
<IMG id=64_1 alt="" src="http://www.domain.nl/sre/data/64_1.jpg
"> and put it back in the HTML code.
I want to do this for all Image tags in the document.
Is it possible to put all image tags in an array and check/change them all?
Sorry for my bad english and thanks for any help or suggestions. Tom