Thursday, November 26, 2009

How to make the string into Title Case?

using System.Text.RegularExpressions;

string str = Regex.Replace("kannabiran", @"\b(\w)",delegate(Match m) { return

m.Groups[1].Value.ToUpper(); });

No comments:

 
Feedback Form