title: How to split a NSString keeping specific punctuations?
body: <p>I need to split a sentence in specific punctuation marks, but keeping these punctuations. </p>
  
  <p>I'm doing it like this:</p>
  
  <pre><code>NSCharacterSet *delimeter = [NSCharacterSet characterSetWithCharactersInString:@"***"];
  
  sentence  = [sentence  stringByReplacingOccurrencesOfString:@"," withString:@",***"];
  sentence  = [sentence  stringByReplacingOccurrencesOfString:@"!" withString:@"!***"];
  sentence  = [sentence  stringByReplacingOccurrencesOfString:@"?" withString:@"?***"];
  sentence  = [sentence  stringByReplacingOccurrencesOfString:@"." withString:@".***"];
  sentence  = [sentence  stringByReplacingOccurrencesOfString:@":" withString:@":***"];
  sentence  = [sentence  stringByReplacingOccurrencesOfString:@";" withString:@";***"];
  
  NSArray *sentenceArray = [sentence  componentsSeparatedByCharactersInSet: delimeter];
  NSMutableArray *finalSentenceArray = [sentenceArray mutableCopy];
  [finalSentenceArray removeObject:@""];
  </code></pre>
  
  <p>But doing like this I'm having empty strings that need to be removed. What is a more efficient way of doing it?</p>
  
  <p>Thanks!</p>