Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

387.Text sort -- How to sort the comma separated words by the length of words?

User: editor -- 2010-01-08          << 386  388 >>
Hits: 2146
Type: Text sort   
Search all Text sort examples
How to sort the comma separated words by the length of words?
I have a comma separated words, I want to sort it by the length of words descending, and replace all comma with '|', how can I do?
Input Sample:
Output Sample:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file or just paste source strings to page 'P0'
2. ctrl-h open 'Replace' dialog
Enter 'replace with pattern' entry like following:

3. click 'Replace', done!
Download Script:  scripts/

Screenshot 1:  Replace_Window

Similar Examples:
How to sort text separated by semicolon from shortest to longest? (57%)
How to replace words in a text file only if they are whole words? (56%)
How to extract lines containg specified words from many files? (55%)
How to auto generate required url from list of words? (55%)
How to keep all specified words in an article and remove rest words? (55%)
How to sort many lines by comparing the second word in each line? (55%)
How to keep the key words and delete all the other words? (54%)
How to sort the lines in a text files by the order of line length? (53%)

Check Demo of Text sort
descending  asp  desc  length  strings  separate  text sort  comma  string  sort  text file sort by length  sort by length  sort text by length  sort text file by length  sort file by text length  sort words text file  length replace  text sort open source