Removing non numeric characters from a string,new_string = ''.join(ch for ch in your_string if ch.isdigit())