当两行的数据一样时,要删除一行的正则表达式解决办法。


当两行的数据一样时,要删除一行的解决办法。

vs 2015解决方案 项目文件编辑时的正则表达式,查找换行的表达式。

((</OutDir>\s\n..*</OutDir>)[\S\s])[\S\s]

  第一个</OutDir> 是开始点,第二个是结束点。

网上找了半天没找到,只能自己研究了(endv.cn)。

 1   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 2     <OutDir>D:\dev\endv\ty\$(Configuration)\</OutDir>
 3     <OutDir>D:\dev\endv\ty\$(Configuration)\</OutDir>
 4     <LinkIncremental>true</LinkIncremental>
 5     <PostBuildEventUseInBuild>false</PostBuildEventUseInBuild>
 6     <TargetName>$(XamlTemporaryAssemblyName)</TargetName>
 7   </PropertyGroup>
 8   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 9     <OutDir>D:\dev\endv\ty\$(Configuration)\</OutDir>
10     <OutDir>D:\dev\endv\ty\$(Configuration)\</OutDir>
11     <LinkIncremental>false</LinkIncremental>
12     <PostBuildEventUseInBuild>false</PostBuildEventUseInBuild>
13   </PropertyGroup>
14   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Unicode|Win32'">
15     <OutDir>D:\dev\endv\ty\$(Configuration)\</OutDir>
16     <OutDir>D:\dev\endv\ty\$(Configuration)\</OutDir>

网上查找的时间比自己研究的时间还要多,有的时候也会无语。

参考百度百科

http://baike.baidu.com/link?url=Ke4KqkWP3RGakBmBc4XzxBJ2u38eKmqhn3AnL_CuLrwMPy1Op2eivWcfpoJ6xoz0

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM