Community
    • Login

    How to remove all lines with 9 or less numbers

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 3.5k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          Aaron Miller
          last edited by

          Thanks Dail you have been super helpful! :)

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors