User: editor -- 2010-04-14 << 476 478 >> |
Hits: 2704 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to auto split/divide a comma seperated long text string into segments? I have a very long text of words that separated by comma, how to devide these words into groups, each group is in one line and contains 4 words |
Input Sample: |
have,very,long,text,of,words,that,separated,by,comma,how,to,devide,these,words,into,groups,,each,group,is,in,one,line,and,contains,... |
Output Sample: |
have,very,long,text of,words,that,separated by,comma,how,to devide,these,words,into groups,each,group,is in,one,line,and contains,... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open source text file 2. ctrl-h open replace window * set 'Unit Number filter' to: * in search for pattern, enter a single comma: * in replace with pattern, enter a newline symbol: 3. click 'Replace', done! 4. ctrl-s save to disk. Note: 4<4> means occurrance of 4,8,16,20, ... |
Download Script: scripts/477.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
How to save specified lines of text file into different files? (52%) How to randomly remove comma delimited sentence fragments? (51%) How to split a 100 line text file into 100 text files? (50%) How to sort the comma separated words by the length of words? (49%) How to remove/delete all commas from comma separated numbers in a text file (49%) How to transpose(exchange row and column) a comma separated text file? (48%) How to change the order of comma delimited sentence fragments randomly? (48%) How to split a large text file into specified various number of lines? (48%) |
Check Demo of Advanced search and replace |
Keywords: |
devide segme divide groups div seperate newline occurrance group symbol devide text seperated by comma auto comma words how to auto comma replace newline replace with a group text pattern filter replace comma pattern filter replace |