I am trying to take a large block of text and split it into multiple strings that are 148 characters each, while avoiding cutting off words.
I have this now, which
You are going to have to pad some of your strings, to make them have the number of characters you require.
var lines= s.match(/(.{1,147}\s)\s*/g);