Fixes #1027 RegexpMapper uses deprecated PREG_REPLACE_EVAL

Please let me know if anything's not up to par.