将一个引用添加到你的项目中 -- System.Text.RegularExpressions, 然后在你想要使用它的源代码中添加 using System.Text.RegularExpressions。