I have written a regex that works well except that it always puts the last word on a line of it's own. Can anyone see where I have gone wrong, this is my first attempt at regex. The text is of variable length.
Basically my regex is trying to
1. Limit numbers of any character to 100
2. So that each element of the array holds as close to 100 characters without cutting into a word.
string pattern=@"(.{1,100}\b\s)";
Regex rex = new Regex(pattern);
string[] Str = rex.Split(Detail);
Thanks for any help