User: y135383 -- 2018-11-22 << 1428 1430 >> |
Hits: 1379 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to extract no more than 20 sentences in a word containing a division by number; and mark them in the order of <Sequential number>? |
Input Sample: |
b.txt 只有;可以;解决 只想;知道;年纪;多的 你;什么 a.txt 只有他们可以解决你的问题。 只有一个方法可以解决 我只想知道你怎么不找个年纪差不多的约会 只想知道为什么他年纪到差不多的时候想结婚了. 那件夹克对提升你的街头信誉没什么帮助,太难看了! 我不介意你穿什么,只要不是那件难看的粉红色衬衫。 如果你遇上什么难事,给我打电话。 我知道我惹你不高兴了,可 |
Output Sample: |
只有;可以;解决 <1只有>他们<2可以><3解决>你的问题。 <1只有>一个方法<2可以><3解决> 只想;知道;年纪;多的 我<1只想><2知道>你怎么不找个<3年纪>差不<4多的>约会 <1只想><2知道>为什么他<3年纪>到差不<4多的>时候想结婚了. 你;什么 那件夹克对提升<1你>的街头信誉没<2什么>帮助,太难看了! 我不介意<1你>穿<2什么>,只要不是那件难看的粉红色衬衫。 如果<1你>遇上<2什么>难事,给我 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
0. put a.txt in folder d:\test\ 1. ctrl-o open b.txt 2. ctrl-h open 'replace' dialog * set 'replace unit' to 'Line' * set 'replace with pattern' to: * click 'advanced' tab * set 'run following at the begin' to: * set 'run following for each matched unit' to: 3. click 'replace', done. 4. ctrl-s save to file. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |