I need to split a string separated by multiple spaces. For example:
"AAAA AAA BBBB BBB BBB CCCCCCCC"
I want to split it into these:
"AAAA AAA"
"BBBB BBB BBB"
"CCCCCCCC"
I tried with this code:
value2 = System.Text.RegularExpressions.Regex.Split(stringvalue, @"\s+");
But not success, I only want to split the string by multiple spaces, not by single space.