|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
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] |
Thread Tools | |
Display Modes | Rate This Thread |
|
|