Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

447.Advanced search and replace -- How to replace a string that not enclosed by specific html tag?

User: editor -- 2010-03-14          << 446  448 >>
Hits: 2913
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to replace a string that not enclosed by specific html tag? 
I have some html files, I want to replace all strings 'utility' with 'application' that not enclosed by <strong> and </strong>
Input Sample:
<title>search and replace utility</title> 
<strong>The best utility</strong> 
text replace utility
Output Sample:
<title>search and replace application</title> 
<strong>The best utility</strong> 
text replace application
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file 
2. ctrl-h open 'replace' window 
* set 'Replace Unit' to 'Word' 
* set 'Search for pattern' to: 
* set 'Replace with pattern' to: 
* click 'Settings' page: 
select Word delimiter-input delimiter to 'other': 
3. click 'Replace', done! 
Note: above operation will skip the replace of strings enclosed by <strong> and </strong> by consider <strong>.*?</strong> as word delimiter.
Download Script:  scripts/

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Settings_Window

Similar Examples:
How to replace a string with one of the specified words randomly in multiple files? (60%)
How to replace old text with new text only in specified range? (60%)
How to extract all text that enclosed by html tag "strong"? (60%)
How to delete or copy text that match specified pattern of html tag? (59%)
How to remove all question mark that enclosed by title tags? (59%)
How to extract the certain line that follow the specified line? (58%)
How to replace alt text with string from title tag? (56%)
How to replace strings in hundreds of html files in one action? (56%)

Check Demo of Advanced search and replace
util  application  strong  skip  specific  pages  enclose  html tag  strings  tag  enclosed replace utility  strong search replace utility application  utility application  html strings  specific word  replace some string  enclosed text search and replace  replace with specific