Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1377.Advanced search and replace -- How to replace the quoted text with lines from another file?

User: ronnytoronto1 -- 2016-08-07          << 1376  1378 >>
Hits: 2963
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
I would like to replace the text between two standard quotation marks with  
text lines from another file. 
Input Sample:
file input.txt: 
 
... ..."text":"Ernie went for a drive in his new car." 
... ..."text":"replace words or lines between these two quotes from another file." 
... 
 
File "replacement.txt": 
Susan didn't like the car. She didn't like Ernie either.  
STOP  
Output Sample:
output.txt: 
 
... ..."text":"Susan didn't like the car. She didn't like Ernie either." 
... ..."text":"STOP" 
... 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
First of all, put file replacement.txt into d:\test\ folder. 
 
1. ctrl-o open text file input.txt 
2. ctrl-h open 'replace' dialogue: 
* set "search for pattern" to: 
 
* set "replace with pattern" to: 
 
3. click 'replace', done. 
4. ctrl-s save to 'output.txt'.

Screenshot 1:  Replace_Window


Similar Examples:
How to replace some text with a random line from another file? (83%)
How to replace everything outside brackets with lines from another file? (74%)
How to replace a string in one text file with random words from another file? (70%)
How to replace or remove 3 lines randomly in a text file? (69%)
How to replace alt text with string from title tag? (66%)
How to replace each line with line have same start word from another file? (65%)
How to replace non-fixed text pattern in a html file? (65%)
How to reverse the order of all the lines in a text file? (64%)

Check Demo of Advanced search and replace
Keywords:
quotation  quote  mark  replacement  quot  another file  two  test  between  input  two lines of text  replace text from another file  text replacement  two lines  between lines  replace another  save lines from text file  two text