I'm trying to figure out how to replace blocks of white space with a single character. I have a possibly poorly formatted file and I would like to unify the delimiter for the data. For instance:
3,4 5\t6 \t 7 8 9
would then become:
3,4,5,6,7,8,9
Something similar to this question but for python.