Search Regex


Search Regex adds a powerful set of search and replace functions to WordPress posts, pages, custom post types, and other data sources. These go beyond the standard searching capabilities, and allow you to search and replace almost any data stored on your site. In addition to simple searches you have the full power of PHP’s regular expressions at your disposal.

You can use this to do things like:
– Help migrate a site from one domain to another
– Update URLs in links and images
– Perform site-wide changes

Search Regex handles small and large sites.

What can I search?

You can search:
– Posts
– Pages
– Any custom post type
– Comments (including spam)
– Users
– Meta data
– WordPress options
– Supported plugins (such as Redirection)

Full regular expression support is provided, and you can capture data and use it in the replacement.

Replace Matched Data

Once a match has been made you can replace it with a popup replacer. You can also replace all matches in a database row, and you can replace all matches across your database.

Additionally, if you need to make your change with context of the surrounding content you can use the inline editor to edit the full context.

Note that it is your responsibility to ensure that replacements in serialized data is valid.


Please submit bugs, patches, and feature requests to:

Please submit translations to:


Full documentation can be found on the Search Regex site.


  • Search options
  • Inline search and replace
  • Inline editor


The plugin is simple to install:

  1. Download
  2. Unzip
  3. Upload search-regex directory to your /wp-content/plugins directory
  4. Go to the plugin management page and enable the plugin
  5. Configure the options from the Tools/Search Regex page

You can find full details of installing a plugin on the plugin installation page.


22. november, 2021
I searched and replaced "­", the soft hypen with a more wp-suitable soft hyphen and "Search Regex" did it in a few minutes of installing it and replacing my searched out text snippets. Fantastic! It could be a little simpler in the GUI for non regexers, but I like it.
9. november, 2021
Thank you for this Search tool! Just donated $20 as it was well worth my time. Had to replace over 700 special URLs on my client's website posts and with regular expression support, it shaved hours off the time it would've taken to update those manually. Keep up the good work!
4. juni, 2021
I have tried many other search & replace plugins, this one is by far the best. Thanks!
10. mai, 2021
WP 5.7 PHP 7.4.16 MySQL 10.3.28-MariaDB Once I got it to work, this plugin did a smooth and swift job of regex searches and deletes, on around 450 posts. Please note I was taking a bit of a chance because it's not tested with WP 5.7, but the only problem I found was that if I tried to save a regex as a preset, it failed with a DB error and, worse, it didn't find any matches after that unless I left it alone for a few hours and then reloaded the page. Naturally I tested my searches on a staging clone of my site first. It's *VERY* important to note that this plugin uses PHP regex syntax, which isn't exactly the same as BASH. Using BASH regex syntax didn't work. Handy tip: use the ".{99999}" syntax as much as possible, it's faster than more precise matching. Final note: be patient once you've checked your search and kicked off the replace / delete. It can be a good few seconds before it reports anything, and the progress meter proceeds in stages with pauses once it does. And to the dev(s): thanks for a great piece of work! Please bring it up to speed with WP 5.7? Best, Joy
Les alle 77 vurderinger

Bidragsytere og utviklere

“Search Regex” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.


“Search Regex” har blitt oversatt til 6 språk. Takk til oversetterne for deres bidrag.

Oversett “Search Regex” til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.


2.4.1 – 29th November 2020

  • Fix replacements with a backslashed character

2.4 – 29th October 2020

  • Support multi-line search phrases
  • Improve progress bar animation
  • Add option to ignore draft posts
  • Improve support for serialized data – show it in the UI, and don’t show an error
  • Fix source flags being sent when source is changed

2.3.3 – 13th September 2020

  • Fix replace in ‘all post types’
  • Fix duplicate sources when deselecting a post source

2.3.2 – 8th September 2020

  • Fix locale pluralization throwing an error

2.3.1 – 7th September 2020

  • Fix locales not loading
  • Fix startup error on some sites

2.3 – 6th September 2020

  • Add option to set a default preset
  • Fix global replace not working in post meta
  • Fix replace value not being used in a preset

2.2.1 – 22nd July 2020

  • Fix regular expression search having no pagination buttons
  • Fix saving a preset with no search phrase showing an error
  • Fix inline editor not working on sources with an underscore
  • Add edit link for TablePress tables
  • Increase maximum per-page size

2.2 – 18th July 2020

  • Add presets
  • Save a search as a preset
  • Lock fields in a search
  • Create custom search templates
  • Fix post meta search

2.1 – 6th June 2020

  • Support searching and replacing in multiple sources
  • Improve regex search and replace speed
  • Row actions have moved to a dropdown
  • Fix HTML entities in row titles
  • Handle unknown post types
  • Fix global replace showing 0% progress
  • Add Japanese locale
  • Add Dutch locale

2.0.1 – 11th May 2020

  • Comment title now takes you to comment page
  • Improve regex performance when data has large gaps
  • Use correct contact address
  • Support \1 as well as $1 in regular expression captures

2.0 – 9th May 2020

  • Release version 2.0, a ground-up rewrite
  • Handles any size of database without memory issues or server timeouts
  • New and responsive UI with inline replacing of individual phrases
  • Match replacements are updated in real-time, including regular expressions
  • Edit an entire database row with the inline editor
  • Supports custom post types
  • Groups columns from one database together
  • Search in third-party plugins (currently Redirection)
  • Improved regular expressions without needing delimiters

1.4.16 – 21st Nov 2014 and before to 2007

  • Old versions