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: 391
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 extract all lines that has more than 2 numbers? (68%)
How to delete/remove all lines that appearred more than once? (67%)
How to extract all lines with more than 30 characters from multiple files? (66%)
How to extract all lines longer than 80 characters from a text file? (66%)
How to extract all lines that has more than 4 columns from csv file? (62%)

Check Demo of Advanced search and replace
Keywords:
short  less  remove all line  characters  character  means  mean  how to remove  remove  remov  text remove lines shorter than  remove lines shorter than  10 lines  remove characters  all characters  remove lines all  remove lines  replace characters