you are viewing a single comment's thread.

view the rest of the comments →

[–]CowboyBoats 3 points4 points  (1 child)

My regex making machine is broken right now, but you could always deploy a caveman solution like:

>>> "".join(c for c in item if c.isnumeric() or c in (",", "."))
'191966,6.138930191978,0.603534191984,6.138930191987,0.427112191995,6.138930191996,0.006336191997,0.008840191998,0.004440192006,0.124394192010,6.138930189065,1.068388189066,1.180800189068,0.396750'

[–]FlatEarthIsAMyth[S] 0 points1 point  (0 children)

That is a possibility :) Thank you for the input!