Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1201.Advanced search and replace -- How to take words from first line and insert into text file randomly?

User: michal -- 2014-05-02          << 1200  1202 >>
Hits: 1793
Type: Advanced search and replace   
Search all Advanced search and replace examples
According to: http://www.mind-

Everything remains the same but, instead of

"Also randomly insert only "word1 word2 word3" together 2 times. "

I have 2 variables "XXX XXX" and "YYY" i want to insert: "basewords XXX XXX"
(x2) "basewords YYY" (x2) - randomly in article (4 times total). But keeping
space minimum 40 words between them.
Input Sample:
[title]basewords word1 word2 word3 
[img]doesnt matter[/img]
content content content content content 
content content content [...]
Output Sample:
[title]basewords word1 word2 word3 
[img]doesnt matter[img] 
conten content content[b]basewords 
word1 word2 word3[b] content content 
content basewords XXX XXX content 
content content 
content basewords YYY content content 
content basewords XXX XXX content 
content content
content basewords YYY content content 
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-h open 'replace' dialogue
* set 'replace with pattern' to:

* click 'advanced' tab, set 'run following for each matched unit' to:

2. click 'batch' button open "Batch Runner" dialogue
3. drag multiple files to "Batch Runner" window
4. click "Batch Replace", done.

Please make backup in advance, to avoid operation error.

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Advanced_Window

Similar Examples:
How to take part of the first line and insert them in text file randomly? (87%)
How to sort all the lines of a text file randomly? (69%)
How to extract half of lines from a text file randomly? (66%)
How to insert a keyword only at first line of multiple text files? (64%)
How to put the file list of a directory into a text file? (61%)
How to batch rename files with the first line of file content as new file name? (61%)
How to extract 3 lines from each file randomly? (59%)
How to reverse the order of the first column in text file? (58%)

Check Demo of Advanced search and replace
error  variables  minimum  variable  total  together  tea  backup  randomly  times  replace pioneer variables  replace pioneer replace tab with space  insert only first line in text file  replace space with tab batch file  count total lines  insert line into multiple files html  insert words in multiple text files  batch file insert space