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