• Login
Community
  • Login

How to remove all lines with 9 or less numbers

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 3.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Aaron Miller
    last edited by Mar 3, 2016, 6:15 AM

    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! :)

    1 Reply Last reply Reply Quote 0
    • D
      dail
      last edited by Mar 3, 2016, 1:06 PM

      Search for:

      ^\d{1,9}\R
      

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

      1 Reply Last reply Reply Quote 1
      • A
        Aaron Miller
        last edited by Mar 3, 2016, 3:02 PM

        Thanks Dail you have been super helpful! :)

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors