Python Regex Extract Number From String Matlab For Loop