Split string by delimiter in template

I have label with name collectd.server.cpu-1.cpu-idle How i can split this string to variables by . delimiter? I try function reReplaceAll (.*).(.*).(.*) , but it not works and i receive full label name in $1