Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1056.Text sort -- How to change the order of comma delimited sentence fragments randomly?

User: Aaron Allan -- 2013-02-17          << 1055  1057 >>
Hits: 3820
Type: Text sort   
Search all Text sort examples
Description:
I would like to change the order of all comma delimited sentence fragments in three different ways. 
 
1. Randomize order using all sentence fragments in text. 
 
2. Randomize order using same single line fragments. 
 
3. Reverse order using same single line fragments
Input Sample:
Sentence fragment A, fragment B, fragment C, fragment D. 
Sentence fragment E, fragment F, fragment G. 
Sentence fragment H, fragment I, fragment J, fragment K, fragment L. 
etc.
Output Sample:
1. Sample output: 
 
fragment B, fragment G, fragment F, fragment K. 
Sentence fragment E, fragment C, Sentence fragment H. 
fragment D, fragment I, fragment J, fragment L, Sentence fragment A. 
 
2. Sample output: 
 
fragment C, Sentence fragment A, fragment D, fragment B. 
fragment F, fragment G, Sentence fragment E. 
Sentence fragment H, fragment I, fragment L, fragment J, fragment K. 
 
3. Sample output: 
fragment D, fragment C, fragment B, Sentence fragment A. 
fragment G, fragment F, Sentence fragme
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
## Randomize order of all sentence fragments in text. 
1. ctrl-o open text file 
2. ctrl-h open replace dialogue 
* set 'replace unit' to 'Chars' 
* set 'replace with pattern' to: 
 
* click 'advanced' tab, set 'run following for each matched unit' to: 
 
3. click 'replace', done. 
 
## Randomize order of all sentence fragments in each line. 
Use similar steps as above, except that in step 2: 
* set 'replace unit' to 'Line' 
 
## Reverse order of all sentence fragments in each line. 
Use similar steps as above, except that in step 2: 
* set 'replace unit' to 'Line' 
* and change this line:  
 
to:  
 
Note: Replace Pioneer version 2.7 or above is required.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to randomly remove comma delimited sentence fragments? (75%)
How to replace strings with words in a list in sequence or randomly? (61%)
How to change the word "good" to one of its synonyms randomly in a text file? (57%)
How to extract half of lines from a text file randomly? (52%)
How to change the direction of all sentences in a text file? (52%)
How to capitalize the first words of each sentence automatically? (52%)
How to split one line into 3 to 5 sentences ended by period randomly? (51%)
Can I change the word order of each line and add a comma as separator? (51%)

Check Demo of Text sort
Keywords:
randomize  eus  asp  delimited  ray  array  similar  except  sentence  reverse  using comma  tab delimited  sort randomly  replace comma tab  replace same with different  replace different to same  change text to single line  sentence line