User: Steve -- 2018-10-07 << 1422 1424 >> |
Hits: 2035 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to fit template file with specified html in same folder? How to convert content-template => content.html with following rule: replace **SHORT-NAME** with $1 in '<title>(.*?)\[' in expanded.html replace HARBOUR-DESKTOP-LINK with $1 in '<!-- Mirrored from (.*?) by' in expanded.html replace BASIC-DATA with $1 in '((<div class="hbox"><h2>.*?<\/div>\s*)+)' in expanded.html replace GEN-DES with $1 in '<div id="hdesc">(.*?)<\/div>/s' in expanded.html ... |
Input Sample: |
template file: content-template.txt template file: frame-template.txt source file: expanded.html |
Output Sample: |
converted file: content.html converted file: frame.html |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-h open 'replace' dialog * set 'replace with pattern' to: * in 'advanced' tab, set 'run ... the beginning': |