Search Regex

説明

Search Regex は、WordPress の投稿、固定ページ、独自の投稿種別、またほかの入力元に対する、強力な検索と置換の機能を追加します。これは WordPress に標準で内蔵されている検索機能を超えており、サイト内に保存されているほぼすべてのデータを検索し置換することができます。単純な検索に加えて、PHP の正規表現を自由に使うことができます。

次のようなことができます:
– あるドメインから別のドメインへのサイト移行を支援
– リンクと画像の URL を更新
– サイト全体の変更を実行

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 は小規模サイトから大規模なサイトまで扱えます。

何を検索できますか?

以下を検索できます:
– 投稿
– 固定ページ
– 独自の投稿種別
– コメント (スパムを含む)
– ユーザー
– メタデータ
– WordPress 設定
– 対応プラ​​グイン (Redirection など)

完全な正規表現に対応しており、データを取り込んで置換時に再利用することができます。

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

開発サポート

バグ、パッチ、機能のリクエストは、ここから送信してください:

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

ここから翻訳に協力してください:

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

ドキュメント

完全なマニュアルなどは、Search Regex の公式サイトにあります。

スクリーンショット

  • 検索オプション
  • インライン検索と置き換え
  • インラインエディター

インストール

プラグインのインストールは簡単です

  1. ダウンロード search-regex.zip
  2. 解凍
  3. search-regex ディレクトリを /wp-content/plugins ディレクトリにアップロードしてください。
  4. プラグイン管理ページに移動し、プラグインを有効にします。
  5. ツール / Search Regex からオプションを設定できます。

プラグインのインストールの詳細については、プラグインのインストールページをご覧ください。

評価

2023年12月11日
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.
2023年7月22日
I've been looking for this plugin for the past 10 years, gosh. What an incredible "little" plugin: search, bam, the pages where a given word/file is located at. That's it, super fast.
2023年4月16日
Saved us hours where another plugin would give up.Of curse it's risky to use it [especially if you use it wrong], so always make a DB backup first, just as it says!Thank you very much.
2023年3月23日
I installed this plugin to do regex replacements. However, it can barely find ANYTHING even on basic searches. For example I used the search phrase: rel="noopener" target="_blank" That returned 96 results on the plugin search. When I went to my posts, it returned 5,559 results. When I ran that search on the Better Search Replace plugin, I got 279 results. Now sadly the Better Search Replace plugin flat out lies when it says it has regex. It absolutely does not. There are TONS of and TONS of posts this plugin is missing which it should be matching. Completely unreliable. I even did direct database checks and deactivated all caching & security plugins. This plugin just can't do anything.
88件のレビューをすべて表示

貢献者と開発者

Search Regex はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Search Regex” は6ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Search Regex” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

3.0.8 – January 1st 2024

  • Fix multiline error

3.0.7 – September 10th 2023

  • Fix problem saving comment

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

  • バックスラッシュを使った置換を修正

2.4 – 29th October 2020

  • 複数行の検索語句に対応
  • 進展バーのアニメを改善
  • 下書き投稿を無視するオプションを追加
  • シリアル化されたデータへの対応を改善 – UI 表示し、またエラーを表示しないようにした
  • 入力元の変更時に送信される入力元のフラグを修正

2.3.3 – 13th September 2020

  • 「すべての投稿種別」の置換を修正
  • 投稿の入力元を非選択時の重複した入力元を修正

2.3.2 – 8th September 2020

  • 多言語化の複数形でのエラーの発生を修正

2.3.1 – 7th September 2020

  • 翻訳が読み込まれないのを修正
  • 一部サイトでの起動エラー修正

2.3 – 6th September 2020

  • 標準のプリセットを設定するオプションを追加
  • 全体的な置換が投稿メタ内で動作しないのを修正
  • プリセット内の置換値が使われないのを修正

2.2.1 – 22nd July 2020

  • 正規表現検索にページ送りボタンのないのを修正
  • 検索語句がない場合にエラーが表示されるプリセットの保存を修正
  • アンダースコアのある入力元がインラインエディターで動作しないのを修正
  • TablePress の表へのリンクの編集を追加
  • ページごとの最大サイズを増加

2.2 – 18th July 2020

  • プリセットの追加
  • 検索をプリセットとして保存
  • 検索の入力欄をロックできます
  • 独自の検索テンプレートの作成
  • 投稿メタ検索を修正

2.1 – 6th June 2020

  • 複数の入力元における検索と置換の対応
  • 正規表現による検索と置換速度の改善
  • 行のアクション選択をドロップダウンの中に移動
  • 行のタイトル中の HTML エンティティを修正
  • 投稿種別が不明な場合の処理
  • 全体の置換で進行状況 0% と表示されるのを修正
  • 日本語訳を追加
  • ドイツ語訳を追加

2.0.1 – 11th May 2020

  • コメントのタイトルがコメントページに移動
  • データに大きな差異がある場合の正規表現の動作性能を向上
  • 正しい連絡先を使用
  • 正規表現の取り込みにおいて $1 に追加して \1 の記法にも対応

2.0 – 9th May 2020

  • バージョン 2.0 を公開。徹底的に書きなおしました
  • メモリの問題やサーバーのタイムアウトなしに、あらゆるサイズのデータ​​ベースを処理
  • それぞれの語句をインラインで置換する、新しいレスポンシブな UI
  • 正規表現を含めて一致項目の置換がリアルタイムで更新されます
  • インラインエディターでデータベースの行全体を編集
  • 独自の投稿種別に対応
  • 1つのデータベースの列をまとめてグループ化
  • サードパーティ製プラグイン内の検索 (現在は Redirection のみ)
  • 区切り文字を必要としない正規表現の改良

1.4.16 – 21st Nov 2014 and before to 2007

  • 旧バージョン