This bit of ColdFusion matches against any links, images or scripts in some HTML (strOutput) and then replaces them with an absolute reference.
strOutput is your piece of HTML
regExpPattern does the searching.
regExpReplace is what to replace with - notice the use of the references using \1 and \4. This effectively grabs the a href=" and "> respectively, but maintaining anything else it finds.
No comments:
Post a Comment