I am trying to get information out of a string, and replace it.
The text will always have the format of
src="cid:325236hdjfgks34563@name"
There can be multiple occurrences though, and what I need to change the string to will also vary.
Is there any way of going through a string, looking for this.
The changing of it will be done by stripping off the front src="cid: and everything after the @ leaving the ID only (for content-id for web based e-mail inline images) that bit I can do.
In other words... flow like this..
Search in string for src="cid:43253453@name"
Found !! -> stop and replace
Carry on searching, stopping and replacing until end of string.
One option I have thought of is writing a temp text file and doing it line by line, but is there a better way ?
Any thoughts / suggestions ?