I have a space-separated .txt file of numbers:
40.766375 -84.267443 40.766355 -84.267463 40.766325 -84.263443 ...
Occasionally, there is a number in the first column that does not have 6 digits after the decimal:
I want to insert a 0 at the end of each such occurrence, so that I end up with:
There are many rows (over 36000), so I'd like to do this with regex. Any ideas?
EDIT: I think I need something like
but I can't quite get there.