How to remove all lines with 9 or less numbers



  • I have a list of numbers that I want to filter out and essentially I want to remove every line that has 9 numbers it in or less.
    For instance if I had lines of numbers like below I would want to get rid of the 976474535 number since it has less than 10 numbers.
    5673794574
    976474535
    1274781284

    Any help would be great! :)



  • Search for:

    ^\d{1,9}\R
    

    And replace with nothing. Make sure you have the search mode set to Regular Expression



  • Thanks Dail you have been super helpful! :)


Log in to reply