Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1351.Advanced search and replace -- How to split English sentence and Chinese sentence into different lines?

User: Jason Liang -- 2016-03-07          << 1350  1352 >>
Hits: 1112
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 – 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 – 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 put a list of names in different rows into one line? (55%)
How to replace one content of same files with different contents ? (54%)
How to split one line into two lines from middle? (52%)
How to split a 100 line text file into 100 text files? (52%)
How to split a large text file into specified various number of lines? (51%)

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