Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1068.Random word generator -- How to randomly select 2~5 lines and append a string at end?

User: editor -- 2013-03-28          << 1067  1069 >>
Hits: 3237
Type: Random word generator   
Search all Random word generator examples
Description:
How to randomly select 2~5 lines and append a string at end?
Input Sample:
.................... 
........ 
.................... 
............. 
........................ 
................. 
........................ 
..............
Output Sample:
.................... 
........(STRING) 
.................... 
.............(STRING) 
........................ 
................. 
........................(STRING) 
..............(STRING)
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 randomly select one line from each paragraph? (59%)
How to random remove x lines from a line range in text file? (58%)
How to randomly deletes x number of lines from text files? (58%)
How to delete all lines appear in file B from file A? (58%)
How to randomly delete x number of lines from text inside and outside brackets? (56%)
How to randomly delete some percent of lines that don't have bracket? (54%)
How to remove/delete all lines with even line number? (54%)
How to remove/delete all lines with even line number? (54%)

Check Demo of Random word generator
Keywords:
asp  randomly select  ray  array  unique  randomly  random word generator  random word gen  word generator  ord generator  append string  word generator end with  string replace randomly  append lines  replace word randomly  advanced word generator  replace randomly  randomly replace