I\'ve got a pretty good working snippit of code, but I was wondering if anyone has any better suggestions on how to do this:
val = \'\'.join([c for c in val
A simple solution is to use regular expessions
import re re.sub("[^0-9^.]", "", data)