User: Aaron -- 2012-12-22 << 1038 1040 >> |
Hits: 3241 |
Type: Regular expression replace |
Search all Regular expression replace examples |
Description: |
How to exchange 1st and 3rd line order OR 1st and 3rd paragraph order in a text? |
Input Sample: |
(Line numbers added) 1. The quick brown fox ran away. 2. The boy saw the animal in the field. 3. He ran back home to tell his father. 4. His father locked up the hen house. 5. He called for his hunting dog. 6. The dog barked and ran to the boy's father. etc. |
Output Sample: |
(Line numbers added) 3. He ran back home to tell his father. 2. The boy saw the animal in the field. 1. The quick brown fox ran away. 6. The dog barked and ran to the boy's father. 5. He called for his hunting dog. 4. His father locked up the hen house. etc. |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'search for pattern' to: * set 'replace with pattern' to: 3. click 'replace', done. 4. ctrl-s save to file |
Screenshot 1: Replace_Window |
Similar Examples: |
How to exchange the 1st and 2nd lines in each paragraph? (74%) How to change all lines to columns in a text? (56%) How to change the number in each line to specified order in a text file? (56%) How to change columns in each line to specified order in text file? (56%) How to exchange the line 10 and 20 from many text files all at once? (53%) How to randomly select one line from each paragraph? (52%) How to delete lines that start with duplicate text? (52%) How to extract all lines with specified date range from text file? (52%) |
Check Demo of Regular expression replace |
Keywords: |
321 exchange 3rd 1st line order paragraph paragra order para regular expression exchange in 1st 3rd line exchange exchange replace search paragraph line to paragraph paragraph pattern order line paragraph replace |