Parsing text from reportsParsing text from reports was closed a few hours ago, with "must contain working code" as the reason, despite the fact that the original questionoriginal question had a working code snippet, as I pointed out in a comment early on. Furthermore, it has now been edited by the OP to include a fully functional program.
Please help reopen the question, or alternatively, explain your votes to close.