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
Another 'pythonic' approach
filter( lambda x: x in '0123456789.', s )
but regex is faster.