Converted preg_replace() /e modifiers to preg_replace_callback()

http://php.net/manual/en/migration55.deprecated.php
preg_replace() \e is depricated in PHP5.5 and throws a warning
Merge pull request #27 from ParkWhiz/master

Converted preg_replace() /e modifiers to preg_replace_callback()