Kinook Software Forum

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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-01-2004, 04:34 AM
Dimitri Dimitri is online now
Registered User
 
Join Date: 08-27-2004
Posts: 6
Question Replace in file: How to replace a single string by multiple lines?

[Thanks for this excellent tool, it saves many many hours and above all, is fun to use!]

Is there a way I can replace a single identifier in a file by multiple lines? It works almost correct when "Treat all characters as literals" is off (the default), but then it performs regular expressions which for example results in "(" and ")" not being copied into the dest file.
And when I turn "Treat all characters as literals" on I get the step error:
"Number of search and replacement strings must match."
(which goes away when I only replace with a single line, instead of multiple lines).

How can I replace a single string by multiple lines and not perform any reg-exing at the same time?

P.S.:
As "replace with" I use a file's content (using vbld_FSO.OpenTextFile's ReadAll), this file is edited by doc maintainers so I would _preferably_ like to keep it clean from any escape-sequences (if that would solve the "(" disappearing in some way).

[Edit: Using VBPro5.5 with WinXP Home SP1]
Reply With Quote
 


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 02:00 PM.


Copyright © 1999-2023 Kinook Software, Inc.