Insert Spaces Before Capital Letters In Single String - DevSharePoint.com


Insert Spaces Before Capital Letters In Single String

Posted by sladescross on August 25, 2010

http://stackoverflow.com/questions/272633/add-spaces-before-capital-letters
This is good to get a human readable description from an enumeration value.
System.Text.RegularExpressions.Regex.Replace(value, “[A-Z]“, ” ″)
string AddSpacesToSentence(string text)
{
if (string.IsNullOrEmpty(text))
return... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.