Title: Warning: preg_replace() error
Last modified: August 22, 2016

---

# Warning: preg_replace() error

 *  Resolved [Josh Fialkoff](https://wordpress.org/support/users/nooozeguy/)
 * (@nooozeguy)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-preg_replace-error/)
 * Hi,
    I get this error on all searches: Warning: preg_replace(): Compilation failed:
   range out of order in character class at offset 11 in /home/content/p3pnexwpnas04_data01/
   17/2296417/html/wp-content/plugins/search-and-replace/search-and-replace.php 
   Is the a solution to this? Is it a known error? Thanks, Josh
 * [https://wordpress.org/plugins/search-and-replace/](https://wordpress.org/plugins/search-and-replace/)

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

 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-preg_replace-error/#post-5447692)
 * Hi Josh. The error is not know. Can you add a screenshot, what you have active
   on the settings, which is your search string.
 *  Thread Starter [Josh Fialkoff](https://wordpress.org/support/users/nooozeguy/)
 * (@nooozeguy)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-preg_replace-error/#post-5447693)
 * This no longer appears to be occurring. I will update you if it happens again.
 *  [keith13](https://wordpress.org/support/users/keith13/)
 * (@keith13)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-preg_replace-error/#post-5447708)
 * Hi Frank,
 * I just struck the same error Josh.
 * The error message is:
 * Warning: preg_replace() [function.preg-replace]: Compilation failed: missing 
   terminating ] for character class at offset 3 in /home/wantok/public_html/walkinginfrance.
   info/wp-content/plugins/search-and-replace/search-and-replace.php on line 717
 * and seems to be related to searching for a string that contains an opening square
   bracket [ but does not contain a closing square bracket ]
 * If there is no opening square bracket the plugin works beautifully, as it has
   done for several years.

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

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

 * ![](https://ps.w.org/search-and-replace/assets/icon-256x256.png?rev=1776844)
 * [Search & Replace](https://wordpress.org/plugins/search-and-replace/)
 * [Support Threads](https://wordpress.org/support/plugin/search-and-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/search-and-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-and-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-and-replace/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [keith13](https://wordpress.org/support/users/keith13/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/warning-preg_replace-error/#post-5447708)
 * Status: resolved