首页 > > > C# string正则表达式替换
1、引入包:using System.Text.RegularExpressions;
2、无需开始结束标记
3、相关代码:
line = Regex.Replace(line, "[\\s]+", " ");
原文作者:;如有侵权,请联系管理员删除。
注册时间:2020-05-21