Your regex could also be written as: /\|TOTAL\s+([\d.]+)%\s+([\d.]+)/.
In reply to Re^2: Extracting string from a file by oiskuu in thread Extracting string from a file by Bindo