Reading urls behind images in richtext field

Can anyone tell me if it’s possible to read urls behind images in richtext fields? I need to check for a particular url string behind images in the body of messages. Using GetformattedText does not return the urls.I can see the values when I look at the document properties. I can select “body” and see the url within the field but can’t seem to return in Lotusscript. Any ideas?

Subject: reading urls behind images in richtext field

Your best bet it probably to export to DXL and check their using DOM processing. DXL is very good for hierarchical data such as this, where you need to find an image, and then need to find the URLs under that image. If you want an even easier solution, our Midas Rich Text LSX will get at these more easily, but it will cost you, so I’d start with DXL if you have any XML skills in house.

If you need it quickly and can pay for it, Midas would do it with code such as:

Set rtchunk = rtitem.DefineChunk(“Graphic 1; URLLink 1”)

While rtchunk.Exists

Print rtchunk.LinkURL

rtchunk.GetNextTarget

Wend