*removed use of preg_replace with /e as it has been depreciated in PHP 5.5