02 2024 档案

摘要:Regex regex = new Regex(@"[\u4e00-\u9fa5]"); // 定义正则表达式,匹配Unicode编码范围内的中文字符 string input = "fefe 年年年 商 eeeeee"; // string matches = regex.Replace(inpu 阅读全文
posted @ 2024-02-29 10:28 探索的动机 阅读(178) 评论(0) 推荐(0) 编辑
摘要:#region 压缩和解压字符串 /// <summary> /// 将传入字符串以GZip算法压缩后,返回Base64编码字符 /// </summary> /// <param name="rawString">需要压缩的字符串</param> /// <returns>压缩后的Base64编码 阅读全文
posted @ 2024-02-19 10:57 探索的动机 阅读(272) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示