| User: ting -- 2015-07-14 << 1309 1311 >> |
| Hits: 3449 |
| Type: Text generator |
| Search all Text generator examples |
| Description: |
| with line like man,male,boy, use each of words as search string, and the rest as random replacement string. |
| Input Sample: |
| man,male,boy aa,bb,cc,dd |
| Output Sample: |
| <find>man</find> <replace>rand_str(1,'male','boy')</replace> <find>male</find> <replace>rand_str(1,'man','boy')</replace> <find>boy</find> <replace>rand_str(1,'man','male')</replace> <find>aa</find> <replace>rand_str(1,'bb','cc','dd')</replace> <find>bb</find> <replace>rand_str(1,'aa','cc','dd')</replace> <find>cc</find> <replace>rand_str(1,'aa','bb','dd')</replace> <find>dd</find> <replace>rand_str(1,'aa','bb','cc')</replace> |
| 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 unit' to 'Line' * 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 |