I have the below text string
text = "\n1.2.2. ROAD LOAD PARAMETERS \nf0 \n227.4 \nf1 (N/(km/h)) \n0.149"
I am trying to write a regex match pattern to get values (consecutive 2 values) that follows '1.2.2. ROAD LOAD PARAMETERS'.
Expected output:
1.2.2. ROAD LOAD PARAMETERS : f0 227.4 # (only 2 values after the match)
Tried the below regex:
ec = re.search(r'(1.2.2. ROAD LOAD PARAMETERS)\s*(.+)', text)
ec.groups()
which gives me the following
('1.2.2. ROAD LOAD PARAMETERS', 'f0 ')