Maxs

将以逗号为分隔符的字符串转换成字符串数组

Posted on 2018-05-28 10:54 MaxsBlog 阅读(...) 评论(...) 编辑 收藏

随笔记一下:

需要引用:

using System.Text.RegularExpressions;

1 public static string[] StrList(string ValStr)
2         {
3             int i = 0;
4             string str = ValStr;
5             string[] sArray = Regex.Split(str, ",", RegexOptions.IgnoreCase);
6             return sArray;
7         }
View Code

 

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-10-08
  • 2021-09-07
  • 2021-12-27
  • 2021-11-17
  • 2021-11-17
  • 2021-09-07
猜你喜欢
  • 2021-11-19
  • 2022-01-01
  • 2021-11-19
  • 2021-11-07
  • 2021-11-07
  • 2021-11-17
  • 2021-09-07
相关资源
相似解决方案