Split your string for isolating your lines if that is not already the case, linebreak character is usually ā\r\nā on Windows. By now you should have a String
Do a forEach on this array and isolate the number.
You can do this using different techniques, regex or splitting the string on space characters and taking the last one