Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1384.Advanced search and replace -- How to insert a separator before the first Chinese char in each line?

User: Vlyne -- 2016-12-05          << 1383  1385 >>
Hits: 816
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
I have a series of lines containing an English word and its Chinese translation.
I would like to insert a separator such as '/' before the first Chinese character.
Input Sample:
Alternative investment 另类投资
Amortizable intangibles 可摊销的无形资产
Amsterdam Stock Exchange 阿姆斯特丹证券交易所

Output Sample:
Alternative investment/另类投资Amortizable intangibles/可摊销的无形资产
Amsterdam Stock Exchange/阿姆斯特丹证券交易所
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 'replace unit' to 'Chars', set 'replace scope' to 'Line'
* 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 insert a word or phrase to the begining of each line? (63%)
How to extract the text between first comma and second comma in each line? (62%)
How to extract the first 10 and last 10 characters from each line? (61%)
How to add first line to the start of each line? (60%)
How to sort file by the number which first appear in each line? (59%)
How to limit a text file to less than 40 chars each line? (58%)
How can I add a word before the last 10 characters of each line? (58%)
How to remove everything before first space in each line? (57%)

Check Demo of Advanced search and replace
Keywords:
chinese  xff  x01  series  english word  chin  english  trans  lines containing  ies  insert first char  insert a character  insert character  replace with a series  char insert  replace first 3 character each line  insert first line  before word