Search This Blog

Thursday, January 2, 2014

Split Sentence by string

If you want to split String based on some string pattern use  Regex split method example.

// Here text is input string and pattern is string to split.
String[] sentences = Regex.Split(text, pattern);

No comments:

Post a Comment