我試圖寫一個正則表達式作爲替換操作的一部分使用。正則表達式匹配一個字符串,不以某個字符串結尾
我有如下許多路徑:
<ProjectReference Include="..\Common.Workflow\Common.Workflow.csproj">
<ProjectReference Include="..\Common.Workflow\Common.Workflow.Interfaces\Common.Workflow.Interfaces.csproj">
<ProjectReference Include="..\Common.Workflow\Common.Workflow.Persistence\Common.Workflow.Persistence.csproj">
<ProjectReference Include="..\Common.Workflow\Common.Workflow.Process\Common.Workflow.Process.csproj">
我需要替換在所有情況下Common.Workflow\
除非了,它包含Common.Workflow.csproj
。
我將這些文件作爲代碼清理的一部分。
你的意思是你想這樣做在Visual Studio ,還是編程? VS正則表達式與.NET正則表達式根本不同。 –
並不多,我是世界上最倒黴的人:( – DaveShaw
@TimPietzcker我沒有使用VS正則表達式。 – DaveShaw