I am trying to read through a text file to extract Oil product prices.
Ex :
Mazout colore no1 1.0515 1.0425 0.0000 0.0000 1.0425 0.0521 0.1040 1.1986
Jet Fuel A1 9.9999 10.0599 0.0400 0.0300 10.1299 0.5065 1.0105 11.6469
Mazout colore no2 0.9945 0.9855 0.0000 0.0000 0.9855 0.0493 0.0983 1.1331
Mazout coloré #2 (f-25) 1.0075 0.9985 0.0000 0.0000 0.9985 0.0499 0.0996 1.1480
Carburant diesel 1.0145 1.0055 0.0400 0.1638 1.2093 0.0605 0.1206 1.3904
Carburant diesel LS30 1.0145 1.0055 0.0400 0.1638 1.2093 0.0605 0.1206 1.3904
Carburant diesel basse temp. 1.0515 1.0425 0.0400 0.1638 1.2463 0.0623 0.1243 1.4329
Diésel coloré 1.0145 1.0055 0.0400 0.0000 1.0455 0.0523 0.1043 1.2021
I have to get these prices for 8 different oil product. The first number after the product name is the previous price and the following number is the last price. i have to extract only the the last price. For example 1.0425 for Mazout colore no1 in the above example.
How Regex can help me out on this search ?
What the Regex expression would look like ?
Thank you very much !