User: editor -- 2016-04-06 << 1357 1359 >> |
Hits: 2741 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to join same language lines into 1 line in a text file? Requirement Description: There is a mixed text file containing English and Chinese lines. How to join consecutive same language lines into 1 line. The line starts or ends with number should not join with other lines |
Input Sample: |
1234 Hello! Good morning. 5678 ÄãºÃ¡£ ÔçÉϺã¡ |
Output Sample: |
1234 Hello! Good morning. 5678 ÄãºÃ¡£ÔçÉϺã¡ |
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: * set 'if' to: 3. click 'replace', done. |
Screenshot 1: Replace_Window |
Similar Examples: |
How to join every n lines into 1 line in a text file? (85%) How to join every sequential line with a random line in a text file? (68%) How to random remove x lines from a line range in text file? (67%) How to join every 3 lines into 3 columns of csv file? (66%) How to join every 50 or 500 lines together in a text file? (63%) How to insert 100 different lines into the beginning of 100 text files? (63%) How to sort all lines of ip addresses in a text file? (62%) How to join the specified 2 or 3 lines together alternatively in a text file? (62%) |
Check Demo of Advanced search and replace |
Keywords: |
language mix chinese line starts requirement chin english consecutive onsecutive desc lines starts replace line starts replace starts with join lines into line join 2 lines if join lines if replace lines not containing search and replace join lines |