Ruby 1.8.7 リファレンスマニュアル
>
ライブラリ一覧
>
tk/textライブラリ
>
TkTextクラス
> replace
instance method TkText#replace
replace(idx1, idx2, *opts)