Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to remove all lines with 9 or less numbers

    Help wanted · · · – – – · · ·
    2
    3
    2824
    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 Miller
      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
      • dail
        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 Miller
          Aaron Miller last edited by

          Thanks Dail you have been super helpful! :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors