Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

504.Replace text in multiple files -- How do I replace all the tags <hr /> in many html files?

User: Patrick Ong -- 2010-05-09          << 503  505 >>
Hits: 346
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
I refer to similar instruction at: http://www.mind-pioneer.com/services/497_Regular_expression_replace.html

I have many files 1.htm, 2.htm, 3.htm... how do I replace all the tags <hr /> in these files?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you want to replace all tag <hr /> with some other strings.

1. open "Tools->Batch Runner" menu
2. drag all html files from windows File Browser to "Batch Runner" window
3. click "Fast Replace" button
(1) click "Add"
in "search" entry, fill:

in "replace" entry, fill the new string you want to write
click "ok"
(2) because your search and replace string are fixed(do not have wildcard), you'd better uncheck option of "Regular Expression"
(3) click "Start", done!

Note: in above step(2), if you enable the option of "Regular Expression", you must put a backslash before each of special characters like: <br \/>

Similar Examples:
How to extract all links which contain "shop" from many html files? (62%)
How to remove/delete text after </html> in many html files? (62%)
How to extract all lines with numbers from many text files? (60%)
How to extract all image links from a html file? (60%)
How to batch replace 'old' to 'new' in many pdf files? (60%)
How to extract all email addresses from many text files? (59%)
How to extract all image links from multiple html files?  (58%)
How to replace all words PLACE_HOLDER with title of the html file?  (57%)

Check Demo of Replace text in multiple files
Keywords:
wildcard  special characters  special character  similar  special  backslash  tags  strings  fixed  refer  replace replace replace html tags  replace string in multiple files  html tag  tag html  replace in many html files  all characters  how to replace a string  replace a string