I have a text file consisting of 51,000 race participants. Each person is represented by a single line consisting of the surname followed by a comma, a space, then the first name, then a tab, then a finishing position, then a tab, then a time.
Example
Mackie, James(Tab)11750(tab)1:14:02
My problem in prepping this for agate publication in a newspaper is the limited line length available for the name, about 22 characters on average. After that, I need to force a soft return after the surname. Problem is, sometimes the surname is long, sometimes the first name, sometimes both — it's the total length of the name that is the issue.
Is there any way in GREP to examine everything before the tab and IF it exceeds a certain length, insert a soft/forced line ending after the space.
Or is this getting into scripting (which is an area I know less than absolutely nothing about)
I did this chore manually yesterday, which took two hours (with a deadline looming), and swore never to go through that again.
Thanks