User: y135383 -- 2018-11-22 << 1428 1430 >> |
Hits: 2415 |
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 |