Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

202.Advanced search and replace -- How to batch replace all words 'tool' with 'software' only in Title part of many HTML files?

User: editor -- 2008-06-25          << 201  203 >>
Hits: 461
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to batch replace all words 'tool' with 'software' only in Title part of many HTML files?
Input Sample:
<HTML>
...
<TITLE>A powerful tool</TITLE>
...
A powerful tool
...
</HTML>
Output Sample:
<HTML>
...
<TITLE>A powerful software</TITLE>
...
A powerful tool
...
</HTML>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
For a single html file:

1. ctrl-o open source file    
2. ctrl-h open replace dialog,    
in 'Replace' page,    
1)set 'Search for pattern':    

Note: <TITLE>.*?</TITLE>@ means anything between <title> tags, @ means ignore cases.
2)set 'Replace with pattern':

3. Click 'Replace', that's ok!    

To change multiple html file, you need to ignore step 1, and click 'Batch...' in step 3 instead to launch 'Batch Runner', click 'pick files' to select multiple files, and click 'Batch Replace'
Download Script:  scripts/202.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to batch replace 'old' to 'new' in many pdf files? (63%)
How to batch replace 'old' to 'new' in many word doc files? (60%)
How to replace all words PLACE_HOLDER with title of the html file?  (56%)
How to batch replace the last 5 "old" with "new" in a text file? (55%)
How to replace a word only one time in multiple text files? (54%)
How to batch edit files, replace all occurance of 'abc.html' with the name of the processed file. (52%)
How to make a batch replacement according to a text mapping file? (52%)
How to batch check all the links of a website and save to a file? (52%)

Check Demo of Advanced search and replace
Keywords:
anything  software  tags  many html files  tag  ignore  between  title  case  single  search replace between tags  html title replace multiple  replace between words  replace replace replace html tags  replace batch many words  change html in multiple files  replace multiple with single  replace words multiple files