s/(.{10})([^\s]*?)\s/\1\2\n/g; [download]
In reply to Re: Counting characters in a string by jbware in thread Counting characters in a string by TASdvlper