我沒有看到這個表達式問題完全相同的副本...正則表達式查找包含子絃樂但不包含子乙
在Visual Studio 2012,我需要找到的所有文件與「使用」指令匹配特定的名稱空間。
例子:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
我想找到所有的 '系統' 除包含 '集合'(串B)的(子A)命名空間引用。
期望的結果:
using System;
using System.Data;
using System.Diagnostics;
似乎想使用正則表達式的好地方。
像'使用System.Generic.Collections;'通過或失敗的字符串? – Jerry
命令重要嗎?怎麼樣「使用Aardvark.Collections.Management.System;'。如何使用'using'語句來處理像'using SystemManagementCorp.Collections'這樣的複合詞? –
你是否在文件中使用VS查找(使用正則表達式)util? – sln