Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1181.Advanced search and replace -- How to shuffle all lines of text in specified range?

User: Dilip -- 2014-03-03          << 1180  1182 >>
Hits: 3496
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Randomize a HTML list. Let the <ul> </ul> remain the same but I need to change  
the order of <li> tags in a random fashion
Input Sample:
<ul> 
    <li>milk</li> 
    <li>butter</li> 
    <li>eggs</li> 
    <li>orange juice</li> 
    <li>bananas</li> 
</ul>
Output Sample:
<ul> 
    <li>eggs</li> 
    <li>bananas</li> 
    <li>orange juice</li> 
    <li>butter</li> 
    <li>milk</li> 
</ul>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text/html file 
2. ctrl-h open 'replace' dialogue 
* set 'search for pattern' to search specified range: 
 
* set 'replace with pattern' to: 
 
3. click 'replace', done. 
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to shuffle all the lines in a text file? (79%)
How to sort all lines of text by specified keyword? (78%)
How to shuffle all elements in a specified range in text file? (76%)
How to shuffle all lines without moving some specified  lines? (74%)
How to re-group all elements in specified range? (69%)
How to sort all the lines of a text file randomly? (68%)
How to change each line of data to the specified format? (67%)
How to replace all specified symbols with dot in specified range? (66%)

Check Demo of Advanced search and replace
Keywords:
randomize  shuffle all lines  shuffle  range  tags  unique  tag  random  rando  rand  replace text with list random  lines tags  replace text in specified range  shuffle lines in the text  random order  replace text random html  shuffle text lines  shuffle lines