| User: editor -- 2008-05-07 << 65 67 >> |
| Hits: 607 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| Can I change the word order of each line and add a comma as separator? |
| Input Sample: |
| AD Andorra AE United Arab Emirates AF Afghanistan AG Antigua and Barbuda AI Anguilla |
| Output Sample: |
| Andorra, AD United Arab Emirates, AE Afghanistan, AF Antigua and Barbuda, AG Anguilla, AI |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| It's not difficult for 'Replace Pioneer': 1.press ctrl-o to open source file 2.press ctrl-h to open replace dialog, set as follows: In 'Replace' page: 1) Set "Replace Unit" to be "Line" 2) Fill 'Search for pattern' to be: 3) Fill 'Replace with pattern' to be: 3. click 'Replace' Button, ok Note: .* means any, words($match,2,-1," "," ") means the words from number 2 to last 1 separated by " " |
| Download Script: scripts/66.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to join two files line by line with comma as separator? (62%) How to change all numbers in a text file to the comma separated numbers? (60%) How to align text to the right side in each line by adding spaces at the left? (53%) How to change the number in each line to specified order in a text file? (51%) How to exchange the first word and second word which is separated by _ in all lines? (51%) How to change the format of url and add ".htm" at end? (50%) How to exchange the 1st and 2nd lines in each paragraph? (50%) How can I add a word before the last 10 characters of each line? (50%) |
Check Demo of Advanced search and replace |
| Keywords: |
| order comma last para las replace pionee replace pioneer eplace pioneer replace pion replace pio add a last words add words last add last word replace the last word for each line each line last word add comma search and replace word order last line last word |