Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-30-2011, 09:45 AM
Japster24 Japster24 is online now
Registered User
 
Join Date: 09-13-2010
Posts: 19
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
Reply With Quote
  #2  
Old 06-30-2011, 11:16 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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).
Attached Files
File Type: bld repl_ref.bld (5.2 KB, 1408 views)
Reply With Quote
  #3  
Old 06-30-2011, 12:18 PM
Japster24 Japster24 is online now
Registered User
 
Join Date: 09-13-2010
Posts: 19
Smile

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
Reply With Quote
  #4  
Old 06-30-2011, 12:27 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #5  
Old 06-30-2011, 12:41 PM
Japster24 Japster24 is online now
Registered User
 
Join Date: 09-13-2010
Posts: 19
Go buy some beer. Thanks guys!
Reply With Quote
  #6  
Old 06-30-2011, 12:46 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Thank you!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:49 PM.


Copyright © 1999-2023 Kinook Software, Inc.