#1
|
|||
|
|||
Multiline search/replace
I can't figure this out for the life of me. I'm no regex expert either. I need to search for a block of text and replace it with another. I tried doing something like this post: http://www.kinook.com/Forum/showthre...ltiple+replace
but couldn't get it to work. =========== //Search for this// <ItemGroup> <ProjectReference Include="..\..\..\..\Components\Forms\v1.0\Source\ Software.Forms1\Software.Forms1.VS2010.csproj"> <Project>{XYZ0E5AF-123F-12B3-9FDA-9ADE123FBEA8}</Project> <Name>Software.Forms1.VS2010</Name> </ProjectReference> </ItemGroup> //Replace with this// <Reference Include="Software.Forms1"> <HintPath>..\..\..\..\Components\FormsAPI\V1.0\Bui ld\DotNet\Software.Forms1.dll</HintPath> </Reference> =========== any suggestions would be MUCH appreciated! Thanks! -jp |
#2
|
|||
|
|||
I'm guessing that the ItemGroup element should remain and the ProjectReference element should be replaced by the Reference element? The attached sample demonstrates one way to do this (if the ItemGroup element should also be replaced, remove the ItemGroup lines from the 'replace matches with' field in the Replace in File action).
|
#3
|
|||
|
|||
Perfect!! As always, you guys rock!
Do you have a paypal "tip" jar or something? Your support has been and remains epic. Thanks again! -jp |
#4
|
|||
|
|||
You're welcome. We don't a tip jar as such, but feel free to send money via PayPal to orders@kinook.com if you'd like. Thanks.
|
#5
|
|||
|
|||
Go buy some beer. Thanks guys!
|
#6
|
|||
|
|||
Thank you!
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|