当前位置:网站首页>C#Split的用法,Split分割字符串
C#Split的用法,Split分割字符串
2022-07-23 16:36:00 【HappyGirl快乐女孩】
分割单个字串:
string str="来自张三的亲切问候!;
string[] strarry=str.Split(new string[] { "张三" }, StringSplitOptions.None);
分割结果:["来自","的亲切问候!"]分割单个字符:
string s="aaBBcdefgh;
string[] sArray=s.Split('c') ;
分割结果:["aaBB","defgh"]分割多个单个字符:
tring s="abcdeabcdeabcde";
string[] sArray1=s.Split(new char[3]{'c','d','e'});
输出下面的结果:ab ab ab边栏推荐
- SQLZOO——SELECT from Nobel Tutorial
- String length function strlen().. String function header file string.h "suggestions collection"
- 【2020】【论文笔记】基于二维光子晶体的光控分光比可调Y——
- Jetty 服务器的 NIO 机制是如何导致堆外内存溢出的
- 一文详解:TMP1750芯片 三通道线性LED驱动器
- 元胞数组处理
- BOM系列之BOM介绍
- LM393低功耗双电压比较器参数、引脚、应用详解
- Past weaving of zero one-2022
- 基于 softether 搭建虚拟私有网络
猜你喜欢

一文详解:TMP1750芯片 三通道线性LED驱动器

How to realize the digital transformation of the banking industry

【游戏建模模型制作全流程】用ZBrush制作游戏士兵角色

入行3D建模有前景吗?就业高薪有保障还是副业接单赚钱多
![MQ [messagequeue graphic explanation and four MQ comparisons]](/img/e0/a8fd8cf3420426c7b1595da79d1b4b.png)
MQ [messagequeue graphic explanation and four MQ comparisons]

What is the current situation of the next generation industry? 90% of career changing modelers are learning this process

1259. 不相交的握手 动态规划

【2020】【论文笔记】相变材料与超表面——

Where should we start to learn modeling from zero foundation? How to learn game modeling well?

【2018】【论文笔记】石墨烯场效应管及【1】——GFETs的种类和原理,GFETs特性,GFETs在太赫兹中的应用和原理
随机推荐
80 + guests took the stage, users from more than 10 countries attended the meeting, and 70000 + viewers watched the end of "Gwei 2022 Singapore"
The little schemer - the origin of the y-zygote cycle
Crack WiFi password with Kail
398. 随机数索引-哈希表法
[whole process of game modeling model production] ZBrush weapon model production: Crossbow
JUC并发编程【详解及演示】
Paddlenlp之UIE分类模型【以情感倾向分析新闻分类为例】含智能标注方案)
UAV circumnavigating an unknown target under a GPS-deniedenvironment with range-only measurements翻译
类的基础
LM393低功耗双电压比较器参数、引脚、应用详解
如何成为建模师?工业建模和游戏建模哪一个更加吃香?
How does Apache, the world's largest open source foundation, work?
Jetty 服务器的 NIO 机制是如何导致堆外内存溢出的
How to replace the double quotation marks of Times New Roman in word with the double quotation marks in Tahoma
从业务开发中学习和理解架构设计
Multithreading [comprehensive study of graphics and text]
SQLZOO——BBC QUIZ
MySQL transactions, starting with redo log, bin log, undo log
PCL:多直線擬合(RANSAC)
ZigBee system development of Internet of things I (Introduction to ZigBee) [easy to understand]