Python regular expression (matching in list)
My guess is to explode(), separating with _ and .
Then match for numeric value
Looking to extract only 7 digit numbers from this list that starts with the distance matrix, nothing after the underscore
The list:
['data_train_3366094.dump','agile_234444.pkl','distanceMatrix_1517144.dump', 'distanceMatrix_3366094_1.dump']
expecting output: 1517144 , 3366094