>o = obj.new(str)
>o.replace(regex)
>o.Regex["$1"]
>o.Regex["$2"]
>o.Regex["$3"]

意味不明なコードなんだが
何をしたいのか誰かエスパー解説してくれ