User: Jason Liang -- 2016-03-07 << 1350 1352 >> |
Hits: 3109 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
There are a Chinese and English mixed in one paragraph, in which one English sentence followed by a translated Chinese sentence. I 'd like to know:1)How to add a word/symbol(such as #)at the beginning of each Chinese sentence; 2)how to separate it into different lines(each line has only a one English sentence followed by a translated Chinese sentence. Thank you very much |
Input Sample: |
iPhone users have a reputation for being smug ¨C and now they may have a good reason.ʹÓÃiPhoneµÄÈËͨ³£¶¼×ÔÃü²»·²£¬¶øÈç½ñËûÃÇÕâÖÖÐÄ̬ÓÐÁËÒ»¸ö¸ü¼Ó³ä·ÖµÄÀíÓÉÁË¡£A recent study has found that people who use an iPhone are smarter than those who prefer Android devices.½üÈÕµÄÒ»ÏîÑо¿·¢ÏÖiPhoneÓû§Òª±ÈÆ«°®°²×¿ÏµÍ³µÄÓû§¸ü´ÏÃ÷¡£This is based on research that found states with more college graduates also tend to have higher iPhone sales.ÕâÏî·¢ÏÖ»ùÓÚÕâÑùÒ»¸öÊÂʵ£ºËùÔÚÖݵĴóѧÉúÈËÊýÔ½¶à |
Output Sample: |
iPhone users have a reputation for being smug ¨C and now they may have a good reason.#ʹÓÃiPhoneµÄÈËͨ³£¶¼×ÔÃü²»·²£¬¶øÈç½ñËûÃÇÕâÖÖÐÄ̬ÓÐÁËÒ»¸ö¸ü¼Ó³ä·ÖµÄÀíÓÉÁË¡£A recent study has found that people who use an iPhone are smarter than those who prefer Android devices.#½üÈÕµÄÒ»ÏîÑо¿·¢ÏÖiPhoneÓû§Òª±ÈÆ«°®°²×¿ÏµÍ³µÄÓû§¸ü´ÏÃ÷¡£This is based on research that found states with more college graduates also tend to have higher iPhone sales.#ÕâÏî·¢ÏÖ»ùÓÚÕâÑùÒ»¸öÊÂʵ£ºËùÔÚÖݵĴóѧÉúÈËÊýÔ½ |
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. Note1: if you only want to add a # before chinese sentence, you can set 'replace with pattern' to: in step2. Note2: we allow chinese sentence contain english word less than 15 letters. you can change 15 to other number in [A-Za-z][a-zA-Z\W]{15,} in step 2 |
Screenshot 1: Replace_Window |
Similar Examples: |
How to save specified lines of text file into different files? (61%) How to add in different sentences after the different lines? (60%) How to split different groups of continuous numbers into different files? (58%) How to copy same lines and combine different lines from 2 files? (55%) How to put a list of names in different rows into one line? (55%) How to split/parse lines into sentences outside two delimiters? (54%) How to generate a list of sentences from template sentence? (54%) How to replace one content of same files with different contents ? (54%) |
Check Demo of Advanced search and replace |
Keywords: |
mix chinese translate english word chin english trans sentence less letters less split text file sentence to paragraph split each line into a separate file beginning sentence split text file into number of lines less than lines lines contain word other file add text before word |