I have a big text file and I would like to extract only numbers that are after certain phrases/words.
There are dozens lines in this huge text file in the following format:
Best CV Model for car: 15778 is order:2 threshold: 0 with AUC of :
0.7185 gene aau_roc: 0.466281
One solution is to just look at number after “for car: X”, “is order: X”, “threshold: X”, “Y gene aau_roc: X” !
At the end I would like to have 15778, 2, 0, 0.7185, 0.466281 for each line.
1 Answer