C# library to split a string into its containing words.
"first-second-third".SplitWords();
["first", "second", "third"]
"first_second_third".SplitWords();
["first", "second", "third"]
"CamelCase".SplitWords();
["Camel", "Case"]
"TheBIGHouse".SplitWords();
["The", "Big", "House"]
- ShouldReturnResultsInLowerCase
const string input = "ABC_DEF";
var configuration = new WordSplitterConfiguration {
ShouldReturnResultsInLowerCase = true
};
input.SplitWords(configuration);
["abc", "def"]
- Custom Delimiters
var configuration = new WordSplitterConfiguration {
Delimiters = new List<char> {'W'}
};
const string inputWithNewDelimiters = "ABCWDEF";
["ABC", "DEF"]
- ShouldReturnResultsInLowerCase:
false
- Delimiters:
['-', '_', '.', ' ', ';']