in reply to Need help with regex to replace 4th \s with \n in data line

Boy, just when I think I'm making progress in regexes. : )

Thanks for both of those!

Some people fall from grace. I prefer a running start...

Update: After further contemplation, I have come to the realization that my initial idea was at fault since I was using PDF::Labels module and it's set up to take lines of text, not lines with line breaks.

Thanks to Django for the excellent suggestion of splitting based on length here.

  • Comment on Re: Need help with regex to replace 4th \s with \n in data line