Python Forum
reformatting text with comma separated numbers
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reformatting text with comma separated numbers
#1
i have found that some programs (rsync is a big example) output numbers larger than 999 with commas in various numbers. i want to make a program that fixes this. it will look for numbers with comma separating digits. where it finds such a number, it will fix it, using exactly the same number of spaces so any other formatting is not misaligned. once the line is finished, it will be output. any nice functions i should know about?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
reformatting text with comma separated numbers - by Skaperen - May-06-2020, 06:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  sorting with numbers in text Skaperen 5 3,701 Jul-20-2021, 01:15 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020