Made two of the regular expressions compatible with PHP 5.5+ because the /e modifier being deprecated.