| User: editor -- 2010-04-14 << 476 478 >> |
| Hits: 308 |
| 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 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 split a large text file into specified various number of lines? (48%) How to change all numbers in a text file to the comma separated numbers? (47%) How to calculate the summaries of every line in a txt file? (46%) How to split many merged avi files into original avi files? (46%) How to replace specific spaces into comma in each line of text file? (46%) |
Check Demo of Advanced search and replace |
| Keywords: |
| devide divide div seperate occurrance newline group symbol sym auto devide text seperated by comma how to auto comma replace newline replace with a group text pattern filter how to replace a string replace a string replace string |