Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1030.Advanced search and replace -- How to replace specified occurrance of some string to a list of words?

User: editor -- 2012-12-03          << 1029  1031 >>
Hits: 1372
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace specified occurrance of some string to a list of words? For example, replace the 3,5,9 occurrance of 'abc' with 'First','Second','Third' accordingly?
Input Sample:
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
Output Sample:
abc
abc
First
abc
Second
abc
abc
abc
Third
abc
abc
abc
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 'unit number filter' to:

* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to replace only one occurrence of string in text randomly? (63%)
How to search and replace text for specified occurrences with reg exp? (62%)
How to replace the specified text with increasing HEX strings? (61%)
How to replace the last occurance of 'old' in every line with 'new'? (60%)
How to replace one specified word with a sequence of words from a file? (59%)
How to replace specified word with increasing binary sequence? (59%)
How to keep all specified words in an article and remove rest words? (58%)
How to replace the 2nd and 3rd occurrences of some words in multiple files? (58%)

Check Demo of Advanced search and replace
Keywords:
third  occurrance  abc  list of words  acc  unit number filter  number filter  second  string  example  replace some string  replace string with number  specified words  replace abc  text number list  words with number  text pattern filter  filter number