Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Search Regex icon

Search Regex

v3.5.1
by John Godley · 4.7 (101 reviews)

Search Regex adds a powerful set of search and replace functions to WordPress posts, pages, custom post types, and other data.

100K+ active installs Updated Oct 06, 2026 Tested to 7.1.5 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
Search Regex

About Search Regex

Search Regex is a powerful tool for searching and replacing data in your WordPress site. It can be used to perform tasks like migrating a site to a new domain, updating URLs, and making site-wide changes. It supports searching and replacing data in various areas of your site, including posts, pages, comments, users, and more. It also provides full regular expression support and allows you to perform actions on matching results, such as modifying or deleting them. The plugin is compatible with PHP versions 7.0 to 8.3 and is suitable for both small and large sites.

Screenshots

Search Regex screenshot
Search Regex screenshot
Search Regex screenshot

Frequently asked questions

What can I search?
You can search:n- Postsn- Pagesn- Any custom post typen- Comments (including spam)n- Usersn- Meta datan- WordPress optionsn- Supported plugins (such as Redirection)
Actions
A variety of actions can be performed on matching results:n- Modify and replace the resultn- Delete the resultn- Export to CSV and SQLn- Perform custom PHP action
Modify and Replace Data
Results can be individually modified by clicking on the item to change, and using the popup modifier.nnBulk modifications can be performed against all matching results.nnThe types of modification depend on the data being changed:n- Numbers can be added or subtracted to existing numbersn- Hours, days, weeks, and months, can be added to datesn- Tags and categories can be added, removed, and substitutednnCustom shortcodes are supported that allow dynamic data to be included:n- Add the current date and time, in any format, to contentn- Insert data from other columns. For example, insert the category into the titlen- Transform existing data. For example, convert case, change underscores to dashes.
Example uses
Some ideas for potential uses:n- Delete all comments that match a phrasen- Add a category to all matching postsn- Remove orphaned meta data
Support
Please submit bugs, patches, and feature requests to:n- [https://github.com/johngodley/search-regex](https://github.com/johngodley/search-regex)nnPlease submit translations to:n- [https://translate.wordpress.org/projects/wp-plugins/search-regex](https://translate.wordpress.org/projects/wp-plugins/search-regex)

Changelog

3.5.1 – October 6th 2026

  • Fix security issue with serialized user meta (found by R3D)
  • Don’t allow serialized data to be saved (partial serialized support is removed)
  • Improve shortcode handling
  • Fix bug replacing shortcodes in some situations

3.5 – October 5th 2026

  • Simplify and improve optional capabilities system
  • Fix ‘remove’ dropdown not enabling replace button

3.4.4 – August 29th 2026

  • Fix error when replacing single result
  • WordPress 7.1 compatibility

3.4.3 – July 25th 2026

  • Sanitise CSV exports
  • Fix ‘run action’

3.4.2 – May 31st 2026

  • Better older PHP compatibility
  • Improve UTF8 collation searching
  • Improve WP 7.0 admin styling

3.4.1 – February 28th 2026

  • Fix problem with export data

3.4 – February 14th 2026

  • Include term description in searches

3.3.1 – January 16th 2026

  • Fix replace all with regex
  • Fix presets on page load
  • Fix crash when adding a modification
  • Fix missing source param from column context
  • Add browser extension error detection
  • Add mid-update cache clearing detection

3.3.0 – January 11th 2026

  • Add a simple/advanced mode toggle
  • Add delete confirmation dialog
  • Improve case-sensitive search to properly handle emojis and multi-byte characters
  • Improved client code
  • Use PHP autoloading for better performance
  • Bump minimum PHP to 7.4

3.2 – December 22nd 2025

  • Add WP CLI functions
  • Variety of small fixes and improvements
  • Update for WordPress 6.9
  • Bump PHP minimum to 7.2

3.1.2 – December 29th 2024

  • Fix crash when loading from a preset with an ‘includes any’

3.1.1 – November 23rd 2024

  • Update for WordPress 6.7

3.1.0 – August 8th 2024

  • Update for latest WP
  • Fix export of regular expression result
  • Switch to WP core translations
  • See changelog.txt for more details

Try other plugins