Community
    • Login

    How to remove all lines with 9 or less numbers

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 3.1k 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.
    • Aaron MillerA
      Aaron Miller
      last edited by

      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
      • dailD
        dail
        last edited by

        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
        • Aaron MillerA
          Aaron Miller
          last edited by

          Thanks Dail you have been super helpful! :)

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