惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
V
Visual Studio Blog
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
D
Docker
MyScale Blog
MyScale Blog
小众软件
小众软件
云风的 BLOG
云风的 BLOG
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 【当耐特】

博客园 - javaca88

SQL高级语法汇总 textaera maxlength - javaca88 - 博客园 聚焦索引与非聚焦索引及其查询效率 zhuan - javaca88 - 博客园 博文阅读密码验证 - 博客园 FormView1.ChangeMode 最经典的实现字符数控制的方案哦!(完善版)(转) JavaScript实际应用:父子页面交互 FormView1 动态传参数 如何取得treeview的节点的checkbox的value值 - javaca88 - 博客园 DetailsView1 动态添加自动列 - javaca88 - 博客园 要用到的代码2 - javaca88 - 博客园 技术网站收录 grid view控件中经常会遇到选择行的问题,怎么才能获得当前行呢 step by step 7 转:C#.Net的常见面试试题 zuo ye 缓冲池 Assembly.Load 获取硬盘序列号 在SQLSERVER里写了一个Split函数
split 正确用法
javaca88 · 2006-10-18 · via 博客园 - javaca88

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string s = "ddddddd";
            s.Replace("d","c");
            Response.Write(s);

            string   Type="1,2,3"; 
            string[]   myarray=Type.Split(new   char[]{','});
            string d = "abcertabcrtgabcder";
            char[] abc = "abc".ToCharArray();
           string []k=d.Split(abc);
           foreach (string j in k)
           {
               Response.Write(j + "</br>");

           }

            string delimStr = "abc";
            char[] delimiter = delimStr.ToCharArray();
            //string words = "one two,three:four.";
            string[] splits = null;
            for (int x = 1; x <= 5; x++)
            {
                splits = d.Split(delimiter, x);
               //Response.Write("\ncount = {0,2} .............."+ x);
                foreach (string s1 in splits)
                {
                    Response.Write( s1+"</br>");
                }
            }