How would I iterate through around 1,500 text files in a folder, each containing
" Completion rate: 119 ( isComplete: 0 )\r\nFailure rate: 158 HC: 119-158-F "
and get "119" "0" "158" "119-158-F" out? What would be the easiest way to do this? preg_match?
preg_matchis the way to go. Is there any other question? The linked manual page should get you there if you need an example.