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
您可以指定您的限制。
关于c# - 使用正则表达式在 Visual Studio 搜索框中搜索电子邮件地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13804969/