7-3 regex_replaceモディファイアとreplaceモディファイア
155ページ
regex_replaceモディファイア
<mt:CategoryLabel regex_replace="/foo/g","bar" />
<mt:SetVar name="pattern" value="/hoge/g" />
<mt:SetVar name="replace" value="ほげ" />
<mt:CategoryLabel regex_replace="$pattern","$replace" />
変更前
<mt:ArchiveTitle regex_replace="/\d+年(.*)月/","$1" />
変更後
<mt:ArchiveTitle regex_replace="/\d+年(.*)月/","\$1" />
replaceモディファイア
<mt:CategoryLabel replace="foo","bar" />