有一个字符串,如12,1221,3231,1233,123,
如何把字符串中的数字一个个选择出来
如12 1221 3231 1233 123
如何把字符串中的数字一个个选择出来
如12 1221 3231 1233 123
解决方案 »
- [求误入]初学ado.net操作数据库,一些问题,比如多用户同时操作数据库的一些设计?
- C# winform如何判断窗口是否已经打开
- SqlDataAdapter Fill
- BeginUpdateResource、UpdateResource和EndUpdateResource 3个API谁懂?
- 用RS232通讯协议的设备,用C#写个程序
- 查询不到市名,帮忙
- 请问有人使用过<asp:changepassword>控件的吗?
- C#调用vc++的dll时 返回包含字符串的结构体出现的问题
- 怎么通过单击按钮弹出窗体二
- 急问???如何弹出打开文件对话框,选择要用的文件,读出文件数据,然后将文件数据写入access数据库中,请写详细代码!!!
- [求助]C#关闭word进程
- 关于获取RFID标签信息的方法
string s = "12,1221,3231,1233,123,";
foreach (Match m in Regex.Matches(s, @"\d+"))
{
Console.WriteLine(m.Value);
}
Console.Read();
str=str.Replace(',',' ');
string[] num = a.Split(',');
foreach (string _num in num)
{ }
string [] ss=s.split(",");
select new { int.Parse(s)}
string[] ar = s.Split('',StringSplitOptions.RemoveEmptyEntries);
{
if (char.IsNumber(str[cycInt]))
{
}
else if (str[cycInt]!= '.')
{
MessageBox.Show("The input charactor: "+ str[cycInt].ToString()+" is not number!");
dgvCalTable.Rows[tempRow].Cells[tempCell].Value = arrayValue[tempRow * y + tempCell];
fillRowData();
return;
}
}
GridView1.Rows[i].Cells[1].ToString().Split(",");总是会报错,为何如此。