fix php upgrade error

in php 5.5 with preg_replace "The /e modifier is deprecated. Use preg_replace_callback() instead. See the PREG_REPLACE_EVAL documentation for additional information about security risks."