This looks like a Text::Wrap job.
In reply to Re: Need help with regex to replace 4th \s with \n in data line
by fglock
in thread Need help with regex to replace 4th \s with \n in data line
by Popcorn Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |