c# - 使用正则表达式在 Visual Studio 搜索框中搜索电子邮件地址

标签 c# .net regex visual-studio-2010 visual-studio

Visual Studio 中的正则表达式搜索非常有限,我需要一个正则表达式来在一个非常大的解决方案中搜索电子邮件地址。

This article说明问题

You can use a specific set of regular expressions in the Find what and Replace with fields of the Find and Replace Window



* 编辑 *
我需要一些与 VS 2010 SP1 一起工作的东西,但不是 VS 2012

最佳答案

打开 Visual Studio 查找对话框并尝试此选项:我已经这样做了。

电子邮件正则表达式:\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
您可以指定您的限制。

enter image description here

关于c# - 使用正则表达式在 Visual Studio 搜索框中搜索电子邮件地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13804969/

相关文章:

c# - Enumerator.MoveNext() 在第一次调用时抛出 'Collection was Modified'

c# - 阻止第三方程序集访问资源

c# - 我应该使用 WCF 来实现给定的二进制网络协议(protocol)吗?

c# - C#中Windows窗体之间的返回结果

.net - 语法高亮 : rich text box control for . NET

c# - LINQ 中的 SQL LIKE

c# - SaveChanges(更新、删除)的 EF Core 全局查询过滤器

用于关键事件输入验证的 javascript 正则表达式故障排除帮助

两种模式之间的 PHP Regex 匹配

c++ - 为什么所有列表都被填充