Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

547.Advanced search and replace -- How to remove all lines that shorter than 10 characters?

User: editor -- 2010-06-26          << 546  548 >>
Hits: 4246
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove all lines that shorter than 10 characters?
Input Sample:
This is line1 
This is line2 
line3 
This is line4 
line5
Output Sample:
This is line1 
This is line2 
This is line4 
Answer:
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 'Line' 
* set 'Search for pattern' to: 
 
3. click 'Replace', done! 
4. ctrl-s save to file. 
 
Notes: ^.{0,10}$ means lines that has less than or equal to 10 characters.

Similar Examples:
How to batch replace lines that has less than 10 characters? (74%)
How to remove all lines that contains more than one word? (72%)
How to remove/delete line breaks of all lines which has more than 20 characters? (71%)
How to remove any word that does not contain character @? (68%)
How to extract all lines that has more than 2 numbers? (68%)
How to delete/remove all lines that appearred more than once? (67%)
How to remove all line breaks that come after the backslash? (66%)
How to extract all lines with more than 30 characters from multiple files? (66%)

Check Demo of Advanced search and replace
Keywords:
shorter  short  equal  less  remove all lines  remove all line  characters  remove all  character  means  text remove lines shorter than  remove lines shorter than  all lines shorter than  all lines shorter  remove lines less than characters  less than lines  remove lines less  remove lines less than