I've been using the Split()
method to split strings. But this work if you set some character for condition in string.Split()
. Is there any way to split a string when is see Uppercase
?
Is it possible to get few words from some not separated string like:
DeleteSensorFromTemplate
And the result string is to be like:
Delete Sensor From Template
Use Regex.split
string[] split = Regex.Split(str, @"(?<!^)(?=[A-Z])");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With