I'm using Oracle 11.g. I have to replace a string within an eMail clob before I send it. The large string looks like:
<p>
Text right before the HP image.</p>
<p>
<img alt="" src="data:image/jpeg;base64,//(a variable amount of encoded data)//"></p>
<p>
Text right after the image.</p>
<p>
</p>
The text before as well as the text after the IMG tag will be of variable length. I'd like to replace the large amount of text within the IMG tag:
<img alt="" src="data:image/jpeg;base64,//(a variable amount of encoded data)//">
With the following text consistently:
<img src="cid:image.jpg" alt="This is a banner"/>
I use INSTR to find the start and end of the IMG tag and store them in local variables. I can't figure out how to replace by those variable positions.
I appreciate your help.