User: editor -- 2008-05-06 << 59 61 >> |
Hits: 3510 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to make following user defined format conversion: V0A1 V0A2 V0A3 ... to .DEFINE V0A1 1; .DEFINE V0A2 V0A1+1; .DEFINE V0A3 V0A2+1; ... |
Input Sample: |
V0A1 V0A2 V0A3 V0A4 V0B1 V0B2 V0C1 V0C2 V0C3 V0C4 V1A1 V1A2 V1B1 |
Output Sample: |
.DEFINE V0A1 1; .DEFINE V0A2 V0A1+1; .DEFINE V0A3 V0A2+1; .DEFINE V0A4 V0A3+1; .DEFINE V0B1 V0A4+1; .DEFINE V0B2 V0B1+1; .DEFINE V0C1 V0B2+1; .DEFINE V0C2 V0C1+1; .DEFINE V0C3 V0C2+1; .DEFINE V0C4 V0C3+1; .DEFINE V1A1 V0C4+1; .DEFINE V1A2 V1A1+1; .DEFINE V1B1 V1A2+1; |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Procedures: 1.press ctrl-o to open source file 2.press ctrl-h to open replace dialog, set as follows: In 'Replace' page: set 'Replace Unit' to 'Line' Search for pattern: Replace with pattern In 'Advanced' Page, Fill 'Run Following for each matched unit' as: 3. click 'Replace' Button, ok! |
Download Script: scripts/60.rst.zip |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |