>>645
>replace(regex , "$1,$2,$3")
string.replace(regex, "$1,$2,$3")と書きたかったのかな?
じゃないならreplaceする入力値はいずこ?