Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1063.Text file parser -- How to extract interface of paragraph without "sw ac" or "sw tr"?

User: sam -- 2013-03-08          << 1062  1064 >>
Hits: 2937
Type: Text file parser   
Search all Text file parser examples
Description:
How to find out without "sw ac" or "sw tr" Interface
Input Sample:

interface A 
sw ac 
xxx 


interface B   
xxx 


interface C 
xxx 
sw tr 
sw ac 


interface D 
sw tr 

Output Sample:
interface B   
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to 'Paragraph' 
* set 'replace with pattern' to: 
 
* uncheck option of 'print unmatched unit' 
* set 'if =>' to: 
 
* click 'settings' tab: 
set 'Para start' to 'other':  
set 'Para end' to 'none' 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Settings_Window


Similar Examples:
How to extract all paragraphs matching "spanning-tree" and remove the match line? (53%)
How to change a paragraph of text to a specical shape like a triangle? (50%)
How to extract specified interface and sw from router configuration file? (49%)
How to separate each paragraph by two lines? (48%)
How to add a blank line after last sentence of paragraph? (47%)
How to extract all lines that contain chem, but not any of org and cn? (47%)
How to extract all text that enclosed by html tag "strong"? (47%)
How to extract lines with specific words in first column? (46%)

Check Demo of Text file parser
Keywords:
tabs  abs  chin  without  non  paragraph  paragra  find  settings  setting  find paragraph  extract paragraph  text parser find replace  text file parser find replace  paragraph pattern  find text  paragraph replace  replace paragraph