hello all,
my question is similar to one being discussed here, i have HTML files that may be written by somebody else I am not sure about the coding stle and to show the images when renaming the file I want to change the src attribute of the img tag in the file.
e.g.
From:
<img src="oldfolder"size="xx" />
or
<img size="xx" src="oldfolder" />
To:
<img src="newfolder"size="xx" />
or
<img size="xx" src="newfolder" />
one idea is to use frontpage COM object which provides objects and properties of an html page.
otherone is preg_replace, but I am not ableto form proper regular expression for this option.