// 输入 tring 类型 ,数据是 AaaaBbbb
// 返回 tring , AAAA_BBBB
//
// 但遇到字母大写的时候就插入下划线,
// 返回的都是大写字母,输入的数据不存在数字。
// 全部是英文字母
//
//
// public string GetTableName(string modelName)
// {
// ...
// }
//
//
// 例子:
// AaaBbbCcc => AAA_BBB_CCC
//
//
// AaaBCD => AAA_B_C_D
解决方案 »
- 关于.NET调用WebService的方法
- 在winform中如果不使用多线程来更新进度条,会出现卡顿,为什么
- DataRelation在GRIDVIEW中实现主从表时没有联动,急。。
- Winform 有没有漂亮些的控件呀..
- 用OLE DB方式把文本文件导入导出数据库的问题??????
- 如果一个系统用多层去做,每个人负责不同的层,比如说分三层,数据层,逻辑层和展示层,那么在数据层做好之前,逻辑层怎么办?在逻辑层做好之前
- 要做一个类似网络寻呼机的软件,那位大虾给点思路,
- vista下vs2005 windows mobile 开发怎么样?
- C# VS08 工程问题
- 怎么在代码里应用文件的相对路径啊?
- 数据库连接问题
- 能不能自动生成css文件?~~ 急 在线等~~~~~
{
// Get the matched string.
string x = m.ToString();
return "_" + x;
}
static void Main()
{
string text = "AadfaADFasddfaDFAdfadAddf";
System.Console.WriteLine("text=[" + text + "]");
string result = Regex.Replace(text, @"[A-Z]",
new MatchEvaluator(RegExSample.CapText));
System.Console.WriteLine("result=[" + result + "]");
}
{
static string CapText(Match m)
{
// Get the matched string.
string x = m.ToString();
return "_" + x;
}
static void Main()
{
string text = "AadfaADFasddfaDFAdfadAddf";
System.Console.WriteLine("text=[" + text + "]");
string result = Regex.Replace(text, @"[A-Z]",
new MatchEvaluator(RegExSample.CapText));
System.Console.WriteLine("result=[" + result + "]");
}
}
上面那个没类名,可能编译不过