text = "X-DSPAM-Confidence: 0.8475" indexof0 = text.find('0') intindexof0 = int(indexof0) indexof5 = text.find('5') intindexof5 = int(indexof5) Extract = text[intindexof0:intindexof5+1] print(float(Extract))
text = "X-DSPAM-Confidence: 0.8475" indexof0 = text.find('0') intindexof0 = int(indexof0) indexof5 = text.find('5') intindexof5 = int(indexof5) Extract = text[intindexof0:intindexof5+1] print(float(Extract))