To set a string with the first letter to uppercase use the bellow code
1: string myString = "hello world!";
2: myString = Regex.Replace(myString, "(?:^|\\s)\\w", new MatchEvaluator(delegate(Match m) { return m.Value.ToUpper(); }));
Sharing the Knowledge about programming with jQuery, Java, ASP.NET, PHP, C# ......
To set a string with the first letter to uppercase use the bellow code
1: string myString = "hello world!";
2: myString = Regex.Replace(myString, "(?:^|\\s)\\w", new MatchEvaluator(delegate(Match m) { return m.Value.ToUpper(); }));
I'm a great believer that any tool that enhances communication has profound effects in terms of how people can learn from each other, and how they can achieve the kind of freedoms that they're interested in.
1 comments:
Post a Comment