Hi. Looks easy enough, but I've been unable to make this work. Some apps eg Google Translate, Twitter, SMS etc only allow a max amount of characters being entered. So how do I split a 500 characters string into chunks of maximal 200 characters, while keeping the last word intact?
I'm thinking
- use Regex to find last space before every 200th char
- Replace it with π
- Use split to array with π as delimiter
But none of the Regex formula's I found seems to work well...
I'm thinking
- use Regex to find last space before every 200th char
- Replace it with π
- Use split to array with π as delimiter
But none of the Regex formula's I found seems to work well...