Template:Replace
表示
{{{1}}}
Luaモジュールを使用しています: |
第1引数に含まれる置換対象の文字列︵第2引数︶を全て別の文字列︵第3引数︶に置換するテンプレートです。
構文[編集]
{{replace |<文章>|<置換したい部分文字列>|<新し
い部分文字列>[|count=n]}}
●|count=n
を指定した場合、n個目の置換対象まで置換します。ただし、|count=1
と指定する場合は代わりに{{Str rep}}を使用してください。
使用例[編集]
●{{replace |One two two three tw
o four twotwo five |two |NINE}}
→ One NINE NINE three NINE four NINENINE five
●{{replace |One two two three tw
o four twotwo five |two |NINE |
count=2}}
→ One NINE NINE three two four twotwo five