C# 正则表达式 作者:马育民 • 2025-06-24 13:35 • 阅读:10000 # 介绍 通过 `Regex` 类实现正则表达式 # 例子 ``` //被查找的字符串 string origin = "abciphone8 iphoneX iphone12123"; //实例化Regex,参数为我们的正则表达式 Regex regex = new Regex(".*"); //生成Match对象 Match match = regex.Match(origin); ``` 参考: https://blog.csdn.net/wangjiangrong/article/details/111179202 原文出处:http://malaoshi.top/show_1GW1MuW97Tt4.html