Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

304.Advanced search and replace -- How to remove addition text outside of <rubrik> and </rubrik>?

User: editor -- 2008-12-10          << 303  305 >>
Hits: 564
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove addition text outside of <rubrik> and </rubrik>?
Input Sample:
<rubrik>
.....
</rubrik>
<?seite nr="10"?>
<rubrik>
.....
</rubrik>
Output Sample:
<rubrik>
.....
</rubrik>
<rubrik>
.....
</rubrik>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open your source file
2. ctrl-h open replace dialog
set "Search for pattern" to:

set "Replace with pattern" to:

UnCheck "Print Unmatched Unit" option

3. click "Replace", all text outside of <rubrik>...</rubrik> will be removed.
Download Script:  scripts/304.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to remove additional line breaks from multiple files? (58%)
How to remove all text that include variable strings? (52%)
How to delete/remove any text with time format of HH:MM:SS? (50%)
How to remove spaces inside and add spaces outside of quotation marks? (48%)
How to remove all lines that contain one or more words in a list? (48%)
How to remove/delete text after </html> in many html files? (48%)
How to remove the text from line start to the first ":" in each line? (47%)
How to replace multiple text in multiple files with variable strings? (47%)

Check Demo of Advanced search and replace
Keywords:
rubrik  addition  unmatched  unmatch  print  matched  how to remove  remove  remov  rem  remove addition outside  remove outside  remove all text  remove text  remove and replace  search and replace open source  search and replace text  search pattern