Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

60.Advanced search and replace -- How to make following user defined format conversion?

User: editor -- 2008-05-06          << 59  61 >>
Hits: 629
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


Similar Examples:
How to re-organize following text and generate a new format dictionary? (60%)
How to reorganize following ":" delimited data into columns? (58%)
How to extract and join text from multiple files with user defined format? (53%)
How to change all negative numbers to the format of (number)? (52%)
How to sort all the lines by the order of date with format day-month-year? (50%)
How to remove/delete following text containing various time? (50%)
How to convert multiple text files to html files with self-defined format? (49%)
How to replace all numbers 93 in every line that contains gas? (49%)

Check Demo of Advanced search and replace
Keywords:
user defined  conversion  pages  fine  define  user  conver  version  rsi  run following for each matched unit  search and replace open source  replace match  search replace  to replace