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.

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

Documentatie

Volledige documentatie vind je op de Search Regex site.

Schermafbeeldingen

  • 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 plugin management pagina en schakel de plugin in
  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

9 september 2022
This is a very cool plugin. I was able to use it to remove the date slug from content links (same domain) without breaking the date slug of the media files. Thousand thanks to the developer! At the support tab you can find my setting for this task under the topic: "How to remove date slug from content links on same domain" What I also like a lot is the test search, which shows exactly what changes... with highlighting of the text to be replaced.
1 augustus 2022
Now, with the support for searching and replacing inside serialized data, it is without the competition in search & replace plugins. You can do anything with this plugin.
26 juli 2022
That's it It was an awesome plugin, never failed, but after 2 years of using it without any problem, this last version became so complicated, that I have no clue what I'm doing, so instead of breaking my site, I removed it. I spend hours trying to understand these peculiar settings on this version. Pitty. Why the hell did you make things so confusing?
2 maart 2022
After updating to PHP 8.0 it will not work. It causes a fatal error. Too bad, I was just learning to use it.
Lees alle 81 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.0.6 – September 5th 2022

  • Fix incorrect pagination
  • Fix incorrect page reload
  • Fix export missing a page of data

3.0.5 – August 25th 2022

  • Fix empty replacement string when saving a preset
  • Fix preset being saved from search preset dropdown
  • Fix search flags being reset when no replacement

3.0.4 – August 19th 2022

  • Fix ‘update preset’ dropdown menu not updating
  • Fix current preset when switching pages

3.0.3 – August 14th 2022

  • Fix error in error message
  • Fix error when removing text
  • Fix update notice never going away
  • Fix multi-line replace not replacing

3.0.2 – July 28th 2022

  • Fix more issues with older PHP
  • Fix a failed update not showing an error message
  • Fix post meta not updating

3.0.1 – July 26th 2022

  • Fix issue with PHP < 7.4
  • Fix ID appearing on date values
  • Fix a global search on options with no filter causing a bad query

3.0 – July 24th 2022

  • Major update with many, many, new features
  • Advanced searches with fully customisable filters that can be combined together with AND and OR logic
  • Search any WordPress table, including posts, comments, users, meta-data, and options
  • Search any column, including text, numeric, and date
  • Can be used as a general-purpose data viewer and data updater
  • Export rows to CSV and SQL
  • Mass delete matching rows
  • Modify any column, with ability to increment and decrement numbers and dates (i.e. add 2 hours to post modification date)
  • Insert data from other columns. For example, add a list of categories into a post, add post date to the title etc
  • Transform existing data. For example, change case, convert underscores to dashes.
  • Full support for saving advanced filter and actions to presets
  • Autocomplete filters and modifications
  • Support for serialized data (with conditions)
  • Fix replace with dollar ($) from being treated as a regular expression

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

  • Reactie titel stuurt je nu naar de reactie pagina
  • Verbeterde prestaties van reguliere expressies bij gegevens met grote leegtes
  • Gebruik juiste contactadres
  • Ondersteunt zowel \1 als $1 in reguliere expressie vondsten

2.0 – 9th May 2020

  • Release versie 2.0, van de grond af herschreven
  • Kan overweg met iedere database grootte, zonder geheugen problemen of server timeouts
  • Nieuwe en responsive UI met inline vervanging van afzonderlijke termen
  • Gevonden vervangingen worden in real-time geupdate, inclusief reguliere expressies
  • Wijzig een volledige database regel met de inline editor
  • Ondersteund aangepaste bericht types
  • Kolommen van één database samen groeperen
  • Zoek in plugins van derden (momenteel Redirection)
  • Verbeterde reguliere expressies zonder gebruik van delimiters

1.4.16 – 21st Nov 2014 and before to 2007

  • Oude versies