str="dfksiiwfjksdsdfsdfe";
按长度为4进行分割,把分割好的存入数组中。
按长度为4进行分割,把分割好的存入数组中。
解决方案 »
- .net有没有开源的工作流?
- 要怎么在datagrid控件下载取tab键和向右的方向键呀??
- c#调用mfc dll文件的类型转换问题
- 存储过程的一个疑问?应该很简单,我是太久没有写程序了,马上给分
- MDAC 是什么东西? SQL Server的程序能在MDAC上直接运行吗?
- 探讨一下这种取数据库键的方式,会不会有问题????
- 请需要c#全站程序和mis oa程序的网友进来看看
- C#写的Socket Server 和Client
- 如何在richtextbox中实现文字的拖放操作?
- c#的数据对比
- XtraGrid问题(有使用经验者请进)解决立马结贴
- 关于继承CollectionBase的问题。如何验证集合中的元素的名称是否相同?即唯一性检查。
{
ArrayList al=new ArrayList();
int j=str.Length;
int temp_first,temp_last;
while(j>i)
{
temp_first=0;
temp_last=str.Length;
j=str.Length;
if(j>i)
{
al.Add(str.Substring(temp_first,i));
str=str.Substring((i+1),(temp_last-(i+1)));
}
else
{
al.Add(str);
}
}
return al;
}
int k = 0;
for (int i = 0; i < s1.Length / 4; i++)
{
strStore[i] = str.Substring(k, 4);
k = k + 4;
}
哎,以为可以用.Net 自己的类轻松处理,结果还是自己写,郁闷
string s = "fjdkfjdljffaakfasfjas";
MatchCollection mc= reg.Matches(s);
foreach (Match m in mc)
{
Console.WriteLine(m.ToString());
}