Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

78.Advanced search and replace -- How to remove/delete all text between '1:' and 'user:'?

User: editor -- 2008-05-11          << 77  79 >>
Hits: 491
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove all text between '1:' and 'user:'?
Input Sample:
1:asfdf sdfasdcwaefrvcafgaf
user:vavvsd
dsfgdfg
sdgasdg

1:asfdf vawerfawf
user:vrgaerf
vwetca
veaf
Output Sample:
vavvsd
dsfgdfg
sdgasdg

vrgaerf
vwetca
veaf
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1.press ctrl-o to open source file     
2.press ctrl-h to open replace dialog, set as follows:     
In 'Replace' page:     
1)Set 'search for pattern': 

2)Fill nothing in 'replace with pattern'
3. Click 'Replace' button, done.

Note: 1:.*?user: means text start with 1: and end by user:
Download Script:  scripts/78.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to remove/delete all lines with even line number? (68%)
How to remove/delete all lines with even line number? (68%)
How to remove all text between 'start' and 'end' for multiple files? (65%)
How to remove/delete the characters between 5 and 15 of every line? (65%)
How to remove/delete the text from the '#' to the end in each line? (63%)
How to remove/delete all symbols in a text file? (62%)
How to remove/delete following text containing various time? (61%)
How to remove/delete all lines with three symbol '='? (59%)

Check Demo of Advanced search and replace
Keywords:
delete all text between  user  between  remove all text  delete  dele  delet  start with  del  end  remove between  text between pattern  text search replace with nothing  search between  start with end with  remove start  replace between  between and