Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

835.Regular expression replace -- How to add bold tag for some specified keywords in multiple html files?

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


Similar Examples:
How to replace a string with one of the specified words randomly in multiple files? (69%)
How to findout all lines that contain specified words in multiple files? (68%)
How to remove some specified characters from multiple filenames? (67%)
How to shuffle specified lines in multiple text files? (67%)
How to extract all image links from multiple html files?  (64%)
How to find out all specified keywords from a file?
(63%)
How to extract specified lines in multiple excel(csv) files? (63%)
How to change all bold tag to bold-italic tag in multiple html files? (63%)

Check Demo of Regular expression replace
Keywords:
bold  boundary  occurrance  keywords  keyword  ignore case  key  tag  ignore  rules  replace bold tag  multiple keywords replace  keywords replace  change multiple html files to b  change html in multiple files  add word to multiple files  html tag  tag html