使用する前に、RegExReplace で後方参照を変更したいと思います。
私はこの作品のようなものを作りたい:
RegExReplace(ManualTimeValues, "(\d+)\.(\d+)", "$1"*60+"$2")
ManualTimeValues
スペースで区切られた整数および浮動小数点形式の数値を含む行です。浮動小数点数を、ポイントの前の部分を 60 で乗算し、ポイントの後の部分を加算して計算された整数に置き換えたいと考えています。
私も試しました:
RegExReplace(ManualTimeValues, "\d+\.\d+", min2sec("$0"))
with min2sec
being a custom function that converts a single floating point number.
I've also tried the same lines with unquoted backreferences.
I've solved this in practice using
Loop, Parse, ManualTimevalues, %A_Space%
but is there a way to use RegExReplace for this?