title: C# - Split Fully Uppercase String Into Separate Words (No Spaces)
body: <p>Im currently working on a project where I will need to separate individual words from a string. The catch is that all the words in the string are capitalized and have no spaces. The following is an example of the kind of input the program is receiving:</p>
  
  <p>"COMPUTERFIVECODECOLOR"</p>
  
  <p>This should be split into the following result:</p>
  
  <p>"COMPUTER"
  "FIVE"
  "CODE"
  "COLOR"</p>
  
  <p>So far, I have been using the following method to split my strings (and it has worked for all scenarios except this edge case):</p>
  
  <pre><code>private static List&lt;string&gt; NormalizeSections(List&lt;string&gt; wordList)
          {
              var modifiedList = new List&lt;string&gt;();
              foreach (var word in wordList)
              {
                  int index = wordList.IndexOf(word);
                  var split = Regex.Split(word, @"(\p{Lu}\p{Ll}+)").ToList();
                  split.RemoveAll(i =&gt; i == "");
  
                  modifiedList.AddRange(split);
              }
              return modifiedList;
          }
  </code></pre>
  
  <p>If anyone has any ideas on how to handle this, I would be more than happy to hear them. Also, please let me know if I can provide additional information.</p>