User: Rod Smith -- 2013-02-17 << 1054 1056 >> |
Hits: 3943 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
Search a batch of Html files for images that are missing, or have blank attributes, replace ot insert the alt atribute with one using the image filename as its text. |
Input Sample: |
1)<img src="good-image.jpg" alt=""> 2)<img src="good image.jpg"> |
Output Sample: |
1)<img src="good image.jpg" alt="good image"> 2))<img src="good image.jpg" alt="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 |