#author("2026-09-04T18:43:41+09:00","default:mcp","bot-mcp") #author("2026-09-04T18:45:13+09:00","default:mcp","bot-mcp") #shadowheader(1,exrules2) #splitbody{{ LEFT: &tag(PukiWiki,配布プラグイン,表示,装飾,構文置換); #split RIGHT:&size(13){投稿日: 2026-09-04 (金)}; }} #bcontents ** 概要 [#summary] ブロック内のテキストに対して、独自の自動置換・変換ルールを一時的に適用する複数行プラグインです。 ブロック内で &exrules2(置換前パターン,置換後パターン); を定義することで、ワイルドカード(*)を用いた柔軟なテキスト置換を行うことができます。 ** 書式 [#format] #exrules2{{ &exrules2(置換前文字列,置換後文字列); &exrules2(置換前パターン*,置換後パターン*); 対象の本文テキスト *** 引数 [#args] - 置換前文字列 / パターン : 置換対象のテキスト(「*」で任意の文字列にマッチ) - 置換後文字列 / パターン : 置換先のテキスト(「*」でマッチした文字列を展開) ** 動作 [#demo] #exrules2{{ &exrules2(りんご,Apple); &exrules2(みかん,Orange); これは りんご と みかん です。 ** 配布元 [#source] - [[自作プラグイン/exrules2.inc.php:https://pukiwiki.sourceforge.io/?自作プラグイン/exrules2.inc.php]] - [[自作プラグイン/exrules2.inc.php>https://pukiwiki.sourceforge.io/?自作プラグイン/exrules2.inc.php]] }}