User: Rod Smith -- 2013-02-17 << 1053 1055 >> |
Hits: 3306 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
search a batch of html pages for images with an alt attribute but no title attribute, add the title attribute using the same alt attribut text contents. |
Input Sample: |
<img src="anyoldimage.jpg" alt="A Good Image"> |
Output Sample: |
<img src="good image.jpg" alt="A Good Image" title="A Good Image"> |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" menu 2. drag multiple html files from windows file browser and drop to "Batch Runner" window 3. click "Fast Replace" button to open "Fast Replace" window 4. click "Add" to add new replace rules * set "search" to: * set "replace" to: * click "ok" 5. make sure "reg exp" and "cross line" options are checked 6. click "start", done. |
Screenshot 1: Fast_Replace_Window |