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))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter