Title: False Positive &#8211; preg_replace() – /e modifier
Last modified: February 27, 2017

---

# False Positive – preg_replace() – /e modifier

 *  [Alexander Rohmann](https://wordpress.org/support/users/alexanderrohmann/)
 * (@alexanderrohmann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/false-positive-preg_replace-e-modifier/)
 * We’re seeing this error:
 * `ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed
   since PHP 7.0`
 * But, our code isn’t using a /e modifier. It does however include an “e” in the
   regex. Please take a look at this thread.
 * [https://community.theme.co/forums/topic/cornerstone-update-to-be-compatible-with-php-7-2/](https://community.theme.co/forums/topic/cornerstone-update-to-be-compatible-with-php-7-2/)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/false-positive-preg_replace-e-modifier/#post-8853305)
 * This should be fixed once [https://github.com/wimg/PHPCompatibility/pull/357](https://github.com/wimg/PHPCompatibility/pull/357)
   has been merged and the plugin updates the version of PHPCompatibility it includes
   to one containing the fix.
 * The issue was not caused by the regex using an e in the regex itself, but by 
   the regex being delimited with quotes (which is bad practice, even though it 
   is a valid delimiter).
    -  This reply was modified 9 years, 3 months ago by [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/).
 *  Plugin Contributor [Jason](https://wordpress.org/support/users/jcross/)
 * (@jcross)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/false-positive-preg_replace-e-modifier/#post-8863484)
 * Thanks [@jrf](https://wordpress.org/support/users/jrf/)
 * To clarify, this plugin relies completely on the PHPCompatibility project ([https://github.com/wimg/PHPCompatibility](https://github.com/wimg/PHPCompatibility))
   for error reporting. Any false positives and so forth should be posted as an 
   issue there.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘False Positive – preg_replace() – /e modifier’ is closed to new replies.

 * ![](https://ps.w.org/php-compatibility-checker/assets/icon-256x256.png?rev=1446087)
 * [PHP Compatibility Checker](https://wordpress.org/plugins/php-compatibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-compatibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-compatibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/php-compatibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-compatibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-compatibility-checker/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jason](https://wordpress.org/support/users/jcross/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/false-positive-preg_replace-e-modifier/#post-8863484)
 * Status: not resolved