User: editor -- 2011-08-09 << 834 836 >> |
Hits: 3334 |
Type: Regular expression replace |
Search all Regular expression replace examples |
Description: |
How to add bold tag for some specified keywords in multiple html files? For example, add <B> </B> for every occurrance of "search" or "replace". |
Input Sample: |
Replace Pioneer is a powerful search and replace tool |
Output Sample: |
<B>Replace</B> Pioneer is a powerful <B>search</B> and <B>replace</B> tool |
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 to 'Batch Runner' window 3. click 'Fast Replace' button 4. click 'Add' to add replace rules: * set 'search' to: * set 'replace' to: 5. make sure 'reg exp' option and 'ignore cases' option are selected. 6. click 'Start', done. Note: if you want to match 'search' but not 'research', should change the 'search' entry in step 4 to: here \b means word boundary. |
Screenshot 1: Fast_Replace_Window |