Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

801.Advanced search and replace -- How to replace a word with a list of words repeatly in a text file?

User: editor -- 2011-06-18          << 800  802 >>
Hits: 2294
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace a word with a list of words repeatly in a text file? For example, change each COLOR to the order of "yellow, red, blue" repeatly.
Input Sample:
..... COLOR ...
.. COLOR ... COLOR
....COLOR ...
....
COLOR...
...COLOR...
..COLOR......
Output Sample:
..... yellow ...
.. red ... blue
....yellow ...
....
red...
...blue...
..yellow......
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'Replace', done.
4. ctrl-s save to disk.

Screenshot 1:  Replace_Window


Similar Examples:
How to replace the content of XML with a list of words from text file? (76%)
How to replace or remove 3 lines randomly in a text file? (72%)
How to count the occurrence of a list of words in a text file? (68%)
How to reverse the order of the first column in text file? (66%)
How to replace a words with the previous word in the same column? (65%)
How to replace one specified word with a sequence of words from a file? (65%)
How to replace a list of words with one single word? (64%)
How to replace a string with one of the specified words randomly in multiple files? (63%)

Check Demo of Advanced search and replace
Keywords:
color  repeat  scalar  toc  list of words  order  example  examp  list  cal  a word to replace yellow  replace word repeatly  search and replace word order  list word  word list  replace example  change word  search file with list