摘要: 方法一、使用正则表达式 1、纯数字提取 string str = "提取123abc提取"; //我们抓取当前字符当中的123 string result = System.Text.RegularExpressions.Regex.Replace(str, @"[^0-9]+", ""); Con 阅读全文
posted @ 2021-08-11 08:33 Cmale 阅读(2856) 评论(0) 推荐(0) 编辑