Title: PHP Warning: preg_replace()
Last modified: May 14, 2023

---

# PHP Warning: preg_replace()

 *  [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-warning-preg_replace/)
 * Hello,
 * Can you fix this PHP warning, or explain why it is happening:
   `PHP Warning: preg_replace():
   Unknown modifier 'n'`

The topic ‘PHP Warning: preg_replace()’ is closed to new replies.

 * ![](https://ps.w.org/string-locator/assets/icon-256x256.png?rev=1352230)
 * [String locator](https://wordpress.org/plugins/string-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/string-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/string-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/string-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/string-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/string-locator/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [preg_replace](https://wordpress.org/support/topic-tag/preg_replace/)

 * 0 replies
 * 1 participant
 * Last reply from: [Malae](https://wordpress.org/support/users/malae/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/php-warning-preg_replace/)
 * Status: not resolved