Title: preg_replace() function is removed in latest PHP 7.* . Need PHP7 compatible code
Last modified: March 24, 2017

---

# preg_replace() function is removed in latest PHP 7.* . Need PHP7 compatible code

 *  Resolved [WP Ninja](https://wordpress.org/support/users/sameernxb/)
 * (@sameernxb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-function-is-removed-in-latest-php-7-need-php7-compatible-code/)
 * Hi Guys,
 * The PHP function **_preg\_replace()_** is used in your plugin which is removed
   in the latest PHP version **7.\***. I have encountered this problem with another
   Latex plugin due to which all my mathematical formulas and equations vanished
   right away with a warning that **_preg\_replace is no longer supported_**. They
   have given it’s alternate: **_preg\_replace\_callback()_** so we have to use 
   this instead.
 * So please let me know do you guys have a plan to update your code so that it 
   is compatible with PHP 7.*. If yes, then when? Because I have clients waiting
   on this.
 * And kindly let me know one more thing, is the plugin compatible with **Math-type
   6.9** methods?
 * Quick response is highly appreciated.
 * Thanks,
    Sameer Rajput

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

 *  Plugin Author [advanpix](https://wordpress.org/support/users/advanpix/)
 * (@advanpix)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-function-is-removed-in-latest-php-7-need-php7-compatible-code/#post-8959061)
 * Hi Sameer,
 * Thank you for reporting this issue. We will fix it in next versions of toolbox.
   
   Plugin is not compatible with MT-6.9 methods.
 *  Thread Starter [WP Ninja](https://wordpress.org/support/users/sameernxb/)
 * (@sameernxb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-function-is-removed-in-latest-php-7-need-php7-compatible-code/#post-8960313)
 * Hi Guys,
 * Thank you for your quick response. Can you please let me know when is your next
   release/update expected with this PHP 7 compatibility fix?
 * Best Regards,
    Sameer
 *  Plugin Author [advanpix](https://wordpress.org/support/users/advanpix/)
 * (@advanpix)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-function-is-removed-in-latest-php-7-need-php7-compatible-code/#post-8960383)
 * This task is of low priority, because this is just a warning.
    PHP 7.* supports
   preg_replace() perfectly.

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

The topic ‘preg_replace() function is removed in latest PHP 7.* . Need PHP7 compatible
code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-quicklatex.svg)
 * [WP QuickLaTeX](https://wordpress.org/plugins/wp-quicklatex/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-quicklatex/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-quicklatex/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-quicklatex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-quicklatex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-quicklatex/reviews/)

## Tags

 * [incompatibility](https://wordpress.org/support/topic-tag/incompatibility/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP 7.0](https://wordpress.org/support/topic-tag/php-7-0/)
 * [preg_replace](https://wordpress.org/support/topic-tag/preg_replace/)
 * [removed](https://wordpress.org/support/topic-tag/removed/)

 * 3 replies
 * 2 participants
 * Last reply from: [advanpix](https://wordpress.org/support/users/advanpix/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-function-is-removed-in-latest-php-7-need-php7-compatible-code/#post-8960383)
 * Status: resolved