using System;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
string str = "ab¥,cd,ef|)12*34";
string[] strs = str.Split(new string[] { "¥,", "|)" }, StringSplitOptions.RemoveEmptyEntries);// 按照指定的字符串分割字符串形成字符数组
foreach(string s in strs)
{
Console.WriteLine(s);
}
Console.ReadKey();
}
}
}
按照指定的字符串分割字符串形成字符数组
最新推荐文章于 2021-05-14 15:48:08 发布