Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
Can somebody help me with the regexp?
I have some text and I need to correct it with capital letter in the beginning and with the dot in the end. I've never been using regexp in ASP.NET C# thats why I'd like to have some comments in the code if it's possible.
Thanks
Posted

 
Share this answer
 
Hi,
Do you really need regex in such example ??
Maybe you can be bounded only with such construction
System.Globalization.TextInfo.ToTitleCase()

for example yo've got and text:
C#
string s="hello world";
string capitalized=System.Globalization.TextInfo.ToTitleCase(s);


rezult will be: "Hello world".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900