(Sep-04-2017, 05:06 PM)Krookroo Wrote: [...]code to get the values and get rid of the commas and EOL characters [...] My main goal is to just have something working
I haven't read your whole post, but if I'm understand correct, you're over-complicating things
# -*- coding: latin-1 -*-
import re
sample = """��1.12005000,1.11800000,14574
1.11947000,1.11811000,8285
1.12035000,1.11749000,7979
1.11812000,1.11597000,18181
1.13148000,1.11499000,30360
1.13176000,1.12344000,57786
1.12441000,1.11997000,24175
1.12261000,1.12067000,14455
1.12466000,1.12198000,10255
1.12643000,1.12209000,29588
"""
print(re.findall(r"[\d.]+", sample))
If that solves your problem, and you still have other questions, it would help to break them down.
Output:
$ python testit.py
['1.12005000', '1.11800000', '14574', '1.11947000', '1.11811000', '8285', '1.12035000', '1.11749000', '7979', '1.11812000', '1.11597000', '18181', '1.13148000', '1.11499000', '30360', '1.13176000', '1.12344000', '57786', '1.12441000', '1.11997000', '24175', '1.12261000', '1.12067000', '14455', '1.12466000', '1.12198000', '10255', '1.12643000', '1.12209000', '29588']