I have a HUGE text file (over 60,000 lines) and I'm using python to do regex fixing on the file.
I want to wrap any lines over 100 characters, and wrap on a space.
I know I can use ".{100}" to find 100 characters but when I do this:
new_text, num = re.subn("(.{100})", "\g<1>\n", file.read()
print num
it says 0 matches found.
Any ideas?