title: How can I split a Javascript string into sentences that are less than 140 characters?
body: <p>I'm working in a Javascript environment with a string that I would eventually like to tweet out via Twitter bot. The problem is, sometimes this string is two short sentences, and sometimes it's several very long sentences.</p>
  <p>Example strings I'm working with:</p>
  <blockquote>
  <p><strong>Short:</strong></p>
  <blockquote>
  <p>&quot;Blah foo. Not so much foo.&quot;</p>
  </blockquote>
  <p><strong>Long:</strong></p>
  <blockquote>
  <p>&quot;Lots of blah foo. So many foo. There is a no way that this foo would fit in one tweet. The characters in this tweet need to be made into a multiple tweets. In fact, there are 189 characters.&quot;</p>
  </blockquote>
  </blockquote>
  <p>I also add onto the beginning and end, so it ends up looking like this:</p>
  <blockquote>
  <p><strong>Short:</strong></p>
  <blockquote>
  <p>&quot;Today: Blah foo. Not so much foo. #hashtag&quot;</p>
  </blockquote>
  </blockquote>
  <p>I would like the longer-than-140 string to be split up into several tweets.</p>
  <blockquote>
  <p><strong>Long Tweet 1:</strong></p>
  <blockquote>
  <p>&quot;Today: Lots of blah foo. So many foo. There is a no way that this foo would fit in one tweet. #hashtag&quot;</p>
  </blockquote>
  <p><strong>Long Tweet 2:</strong></p>
  <blockquote>
  <p>&quot;The characters in this tweet need to be made into a multiple tweets. In fact, there are 189 characters. #hashtag&quot;</p>
  </blockquote>
  </blockquote>
  <p>The way I see it, I could either <code>string.split()</code> up the entire string into an array of sentences and loop through them to build each tweet, or I could use Regex to select and split up the long string into multiple just-under-140-character strings.</p>
  <p>Which method would be more efficient? I assume it would be the Regex option. How would I go about implementing that solution?</p>