HTML source code rewrite or proxy via iRule

Rewrite href link using content html profile and iRule??? I was pointed in this direct for being able to rewrite all the href links that point to a certain URL abc.def.com to another link 123.def.com. The guidance I got was to create a Content profile for HTML and then use that to replace the content in the tag.

I figured out how to write the profile but I do not know how to write the iRule. Any assistance would be greatly appreciated.

I found a link for the Content profile but in the article is doesnt state how to write the iRule

it seems the html / content profile never took really off, the wiki has limited info and i just seem unable to find any example

someone starts with it but the STREAM profile is suggested

https://devcentral.f5.com/questions/is-it-possible-to-do-html-content-re-write-modification-from-f5

here again the stream profile is suggested

https://devcentral.f5.com/questions/modify-html-content-with-an-irule-48111

so if that works for you it might be easier