Search Regex

Beschrijving

Search Regex voegt krachtige zoek en vervangfuncties toe aan WordPress berichten, pagina’s, aangepaste bericht types en andere gegevensbronnen. Dit gaat verder dan de standaard zoekmogelijkheden, want je kan zoeken en vervangen in vrijwel iedere soort gegevens op je site. Naast eenvoudige zoekacties beschik je ook over de kracht van PHP’s reguliere expressies.

Je kan dit gebruiken voor dingen als:
– Hulp bij een site migreren van het ene naar het andere domein
– Updaten van URL’s in links en afbeeldingen
– Site-brede wijzigingen uitvoeren

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 is bruikbaar op kleine en grote sites.

Search Regex has been tested with PHP from 7.0 to 8.3.

Waar kan ik naar zoeken?

Je kan zoeken naar:
– Berichten
– Pagina’s
– Iedere custom post type
– Reacties (inclusief spam)
– Gebruikers
– Meta data
– WordPress opties
– Ondersteunde plugins (zoals Redirection)

Reguliere expressies worden volledig ondersteund en kan gegeven verzamelen en die gebruiken als vervanging.

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

Ondersteuning

Bugs, patches en feature requests toevoegen op:

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

Voeg vertalingen toe op:

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.

Documentatie

Volledige documentatie vind je op de Search Regex site.

Schermafdrukken

  • Zoek opties
  • Inline zoek en vervang
  • Inline bewerkingsscherm

Installatie

De plugin is eenvoudig om te installeren:

  1. Download search-regex.zip
  2. Unzip
  3. Upload search-regex directory naar je /wp-content/plugins directory
  4. Ga naar de pagina Geïnstalleerde plugins om de plugin te activeren
  5. Configureer de opties op de Gereedschap/Search Regex pagina

Je vindt volledige details over installatie van de plugin op de plugin installatie pagina.

Beoordelingen

3 oktober 2024
Works perfectly. For those having issues, you need to proceed with regex with caution (always backup first), as the plugin notes.
1 oktober 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 september 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.
20 augustus 2024
For a plugin called SEARCH REGEX, maybe have REGEX enabled by default? For a title feature to be hidden in dropdown is a bit annoying. If someone is installing this, they clearly looked for REGEX eh? I’d suggest keeping REGEX enable/disable a separate setting that is always visible.
11 december 2023
This is one of the worst plugins I have ever seen. It loves to silently delete your posts. All you have to do is touch that “Delete” link that spends most of its time invisible, hiding 10 pixels from the “View” link, and POOF! your post is gone. Forever. Not in the trash, not made private or draft, no, it is gone right out of the database table like it never existed. There is no warning, no confirmation, nothing. In fact, it happens so fast you will probably miss it. Much later, you will wonder what happened to all your posts – now you know. I finally had to hack the javascript and disable the delete function to make the plugin safe enough to use at all. But even after that, I found it had gotten me a second time, and I’m afraid I just don’t know how many more posts this plugin has eaten. There is no record, they are just gone. I finally disabled most of the user interface, as no part of it is safe – you can end up doing a lot of damage without even realizing it. Most of that is irrelevant junk anyway – why should a search-and-replace have built-in edit and delete functions anyway? This plugin actually does most of what it advertises, and pretty well, but if you are going to use it, be extremely careful. The user interface is generally clunky, vague and unhelpful, and you are left wondering what any operation might do. At one point, it deleted my entire database instead of replacing a string as it seemed to advertise. No warning or confirmation, just deleted everything. Luckily, by then I was extremely suspicious and made a fresh backup first. Sometimes match means a few characters, sometimes it means the entire post, and sometimes it means the entire database. You get to find out the fun way. This plugin is a complete boobytrap.
Lees alle 94 beoordelingen

Bijdragers & ontwikkelaars

“Search Regex” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Search Regex” is vertaald in 6 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Search Regex” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

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