Search Regex

説明

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

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

検索フィルターは、任意の WordPress テーブルの任意の列と一致するように作成できます。例えば:
– あるカテゴリーのすべての投稿を見つける
– 投稿のないすべてのメタ情報を見つける
– 日付範囲内のすべての投稿を見つける

Search Regex は小規模サイトから大規模なサイトまで扱えます。

Search Regex は PHP 7.4 から 8.4 で動作確認済みです。

何を検索できますか?

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

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

アクション

一致結果に対してさまざまな操作を行えます:
– 結果の修正および置換
– 結果の削除
– CSV および SQL へのエクスポート
– カスタム PHP アクションの実行

データの変更と置換

結果は、変更する項目をクリックしてポップアップの修正ツールを使用することで個別に変更できます。

一括変更は、すべての一致する結果に対して実行できます。

変更の種類は変更されるデータによって異なります:
– 数値には既存の数値に対して加算や減算ができます
– 日付には時間、日、週、月を加算できます
– タグとカテゴリは追加、削除、置換ができます

カスタムショートコードがサポートされており、動的なデータを含めることができます:
– 任意の形式で現在の日付と時刻をコンテンツに追加
– 他の列からデータを挿入。例えば、タイトルにカテゴリーを挿入
– 既存のデータを変換。例えば、大文字小文字の変換やアンダースコアをダッシュに変更

使用例

利用例のアイデア:
– 特定のフレーズに一致するすべてのコメントを削除
– 一致するすべての投稿にカテゴリーを追加
– 孤立したメタ情報を削除

開発サポート

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

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

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

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

翻訳

翻訳は WordPress 本体によって提供されています。翻訳は WP 管理画面のダッシュボード > 更新 セクションで更新できます。

ドキュメント

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

スクリーンショット

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

インストール

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

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

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

評価

2025年7月21日
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.
2025年1月16日
Dear John, you are so GODLEY!! thank you for this wonderful super helpful plugin! May I buy you a ticket to Disneyland?? 😉
2024年12月16日
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!
2024年10月3日
Works perfectly. For those having issues, you need to proceed with regex with caution (always backup first), as the plugin notes.
2024年10月1日
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.
2024年9月1日
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.
98件のレビューをすべて表示

貢献者と開発者

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

貢献者

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

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

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

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

変更履歴

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

  • 簡易 / 詳細モード切替を追加する
  • 削除の確認ダイアログを追加
  • 大文字小文字を区別する検索で絵文字やマルチバイト文字を正しく扱うように改善
  • クライアントコードを改善
  • パフォーマンス向上のために PHP のオートローディングを使用する
  • PHP の最小サポートバージョンを 7.4 に引き上げ

3.2 – December 22nd 2025

  • WP-CLI 関数を追加
  • 小さな修正と改善の多様な変更
  • WordPress 6.9 の更新
  • PHP の最低バージョンを 7.2 に引き上げる

3.1.2 – December 29th 2024

  • ‘includes any’ を含むプリセットから読み込む際のクラッシュを修正

3.1.1 – November 23rd 2024

  • 更新: WordPress 6.7 に対応

3.1.0 – August 8th 2024

  • 最新の WP に対応
  • 正規表現の結果のエクスポートを修正する
  • WP コアの翻訳に切り替え
  • 詳細は changelog.txt を参照してください。