Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

141.Advanced search and replace -- How to remove/delete following text containing various time?

User: editor -- 2008-05-21          << 140  142 >>
Hits: 2165
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove following text containing various time? 
Input Sample:
Movie1 
32 minutes 56 seconds 
Movie2 
1 hour 22 minutes 11 seconds 
Movie3 
2 hour 12 minutes 
Output Sample:
Movie1 
Movie2 
Movie3 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
The requirement is to remove all lines containing 'minutes' 
1. ctrl-o open source file. 
2. ctrl-h open 'Replace' dialog, 
in 'Replace' window,  
* set 'Replace Unit' to 'Line' 
* fill in 'Search for Pattern': 
 
* fill nothing in 'Replace with Pattern' 
3. click 'Replace' 
Download Script:  scripts/141.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to remove/delete all lines containing '123456'? (67%)
How to remove all folders in a list containg folders and files? (60%)
How to remove/delete lines of csv file with column C containing 'CCC'? (60%)
How to remove/delete all lines not containing 'abc'(only keep lines containing 'abc')? (60%)
How to remove/delete all text enclosed by a pair of square bracket []? (59%)
How to remove/delete all text between '1:' and 'user:'? (59%)
How to remove/delete all blank lines in a text file? (59%)
How to remove/delete first column for multiple files? (58%)

Check Demo of Advanced search and replace
Keywords:
requirement  minut  remove all lines containing  delete following  lines containing  var  remove all lines  lines contain  containing  remove all line  remove lines containing  remove time  text search replace with nothing  remove all text following  remove lines all  remove lines with  remove lines  remove all text