摘要:
1:随机数的基数为大写字母26个,和数字0-9View Code namespacetest{classProgram{staticvoidMain(string[]args){stringresult=string.Empty;string[]arrString={"A","B","C","D","E","F","G","H","I","J","K","L" 阅读全文
摘要:
usingSystem.Text.RegularExpressions;classRegExSample{staticstringCapText(Matchm){//Getthematchedstring.stringx=m.ToString();//Ifthefirstcharislowercase...if(char.IsLower(x[0])){//Capitalizeit.returnchar.ToUpper(x[0])+x.Substring(1,x.Length-1);}returnx;}staticvoidMain(){stringtext="fourscoreands 阅读全文