I wish to pass text to a function and have it replace any URLs in that text with campaign URLs using preg_replace. The goal is to add campaign URL strings for Google Analytics on all outbound links.
Function: addCampaignURL ( text, exclude, source, medium, term, content, name, replace, target)
- text = the body of html text that's passed ...
Skills: php, regular expressions