Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1423.Advanced search and replace -- How to fit template file with specified html in same folder?

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': 
 
2. click 'batch' 
* drag template files in. 
* set output to  
* click 'batch replace', done

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Screenshot 3:  Batch_Runner_Window


Similar Examples:
How to batch replace files with specified format in each line? (64%)
How to convert a text file to specified format? (64%)
How to split a text file with specified start and end line and name? (63%)
How to refine multiple text files by specified rules? (61%)
How to make search and replace only in specified lines in text file? (59%)
How to search and replace words in specified column in csv file? (59%)
How to extract all data followed by specified words from many files? (58%)
How to find out all specified keywords from a file?
(57%)

Check Demo of Advanced search and replace
Keywords:
dirname  class  asic  short  div  desc  ies  replace template  link  template  replace html content by click  replace div content  batch content title title  html template  pattern search replace template  batch search and replace template  batch search and convert  convert html