Search Regex

Descrizione

Search Regex aggiunge un set potente di funzioni di ricerca e sostituzione per articoli, pagine, tipi di articolo personalizzati e altre sorgenti dati di WordPress. Queste vanno oltre le capacità standard di ricerca e ti consentono di cercare e sostituire quasi ogni dato conservato nel tuo sito. In aggiunta alla semplice ricerca hai a disposizione tutta la potenza delle espressioni regolari di PHP.

Puoi usarlo per fare cose come:
– Migrare un sito da un dominio a un altro
– Aggiornare gli URL nei link e nelle immagini
– Effettuare cambiamenti in tutto il sito

Search filters can be created to match any column of any WordPress table. For example:
– Find all posts in a category
– Find all post meta data without a post
– Find all posts in a date range

Search Regex gestisce siti piccoli e grandi.

Search Regex has been tested with PHP from 7.4 to 8.4.

Cosa posso cercare?

Puoi cercare:
– Articoli
– Pagine
– Qualsiasi tipo di articolo personalizzato
– Commenti (incluso lo spam)
– Utenti
– Metadati
– Opzioni di WordPress
– Plugin supportati (come Redirection)

È disponibile il pieno supporto alle espressioni regolari che ti consentono di catturare dati e di usarli nella sostituzione.

Actions

A variety of actions can be performed on matching results:
– Modify and replace the result
– Delete the result
– Export to CSV and SQL
– 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.

Bulk modifications can be performed against all matching results.

The types of modification depend on the data being changed:
– Numbers can be added or subtracted to existing numbers
– Hours, days, weeks, and months, can be added to dates
– Tags and categories can be added, removed, and substitued

Custom shortcodes are supported that allow dynamic data to be included:
– Add the current date and time, in any format, to content
– Insert data from other columns. For example, insert the category into the title
– Transform existing data. For example, convert case, change underscores to dashes.

Example uses

Some ideas for potential uses:
– Delete all comments that match a phrase
– Add a category to all matching posts
– Remove orphaned meta data

Supporto

Invia segnalazioni di bug, patch e richieste di nuove funzioni a:

https://github.com/johngodley/search-regex

Invia le traduzioni a:

https://translate.wordpress.org/projects/wp-plugins/search-regex

Translations

Translations are provided by WordPress itself. You can update the translations by going to the Dashboard > Updates section of WP admin.

Documentazione

La documentazione completa si trova nel sito Search Regex.

Screenshot

  • Opzioni di ricerca
  • Cerca e sostituisci in linea
  • Editor in linea

Installazione

È semplice installare il plugin:

  1. Scarica search-regex.zip
  2. Decomprimi il file
  3. Carica la directory search-regex nella tua directory /wp-content/plugins
  4. Vai nella pagina di gestione dei plugin e abilita il plugin
  5. Configura le opzioni dalla pagina Strumenti/Search Regex

Puoi trovare informazioni dettagliate per installare un plugin nella pagina di installazione plugin.

Recensioni

21 Luglio 2025
This plugin does a great job when you just want to find and replace text across your site. The interface is clear, the regex support works well, and the preview feature is very useful. However, the “Delete Matches” action is misleading—and potentially disastrous. I expected it to remove only the matched text, but it actually deletes the entire record (and even associated attachments) whenever it finds a match. There’s no clear warning that you’ll lose whole posts and media files. Use with extreme caution, or stick to the replace functionality only.
16 Gennaio 2025
Dear John, you are so GODLEY!! thank you for this wonderful super helpful plugin! May I buy you a ticket to Disneyland?? 😉
16 Dicembre 2024
Incredibly powerful search tool for your dashboard, especially useful if, for example, you’ve moved to a new server (or a new site structure), or someone’s changed their name, or any other reason you might need to update a lot of things at once in the same way. Risky too – make sure you preview any replacements first!
3 Ottobre 2024
Works perfectly. For those having issues, you need to proceed with regex with caution (always backup first), as the plugin notes.
1 Ottobre 2024
Why on earth does the entire post get deleted when I’m only trying to replace a string? While attempting to delete specific keywords across multiple posts using the ‘Delete Matches’ button, the entire posts containing those keywords were deleted. There was no warning, and the posts didn’t even move to the trash. This tool is absolutely terrible.
1 Settembre 2024
An absolute must-have for people migrating huge data and having to correct loads of broken links. Does for free, with a quite powerful interface, what others promise to provide if you pay first.
Leggi tutte le recensioni di 98

Contributi e sviluppo

“Search Regex” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Search Regex” è stato tradotto in 7 lingue. Grazie a chi traduce per il contributo.

Traduci “Search Regex” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

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