(m.Value. Len..." />

Split a Pascal-case string into logical set of words [closed]?

Don't know about efficient but at least it's terse: Regex r = new Regex("(A-Z+a-z+)"); string result = r. Replace("CountOfWidgets", m => (m.Value. Length > 3?M.

Value : m.Value.ToLower()) + " ").

I would like to take a pascal-cased string like "CountOfWidgets" and convert it into something more user-friendly like "Count of Widgets" in C#. Multiple adjacent uppercase characters should be left intact. What is the most efficient way to do this?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions