/e modifier for preg_replace regex is deprecated in php5.5 (and unelegant) - Got rid of it for PHP versions >= 5.3