Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1102.Advanced search and replace -- How to insert 3 to 10 words "ABC" into random position between any 2 words?

User: editor -- 2013-07-10          << 1101  1103 >>
Hits: 3073
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to insert 3 to 10 words "ABC" into random position in a text file?  
The inserted words should not break the original words. 
Input Sample:
The sun was hot.  
The boy was thirsty. 
He drank some water. 
He felt better. 
Output Sample:
The sun was ABC hot.  
ABC The boy was ABC thirsty.  
He ABC drank some water.  
He felt better. 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace with pattern' to: 
 
* click 'advanced' tab, set 'run following for each matched unit' to: 
 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to insert 3 to 10 words "ABC" into random position in a text file? (81%)
How to insert a space or underscore between every 2 words in filenames? (55%)
How to keep the key words and delete all the other words? (49%)
How to generate a list with random numbers between 10 and 70? (48%)
How to generate 100 random date between 2009-01-01 and 2009-12-31? (48%)
How to insert a space between every 80 characters? (48%)
How to insert lines between sentences with specified order? (47%)
How to generate all the prime numbers that between 100 and 200? (47%)

Check Demo of Advanced search and replace
Keywords:
random position  x01  position  break  abc  random  rando  rand  between  count  insert break  replace with random words  replace text with random words  random words  replace position  replace between words  insert words  random text insert