• Login
Community
  • Login

how remove only number in notpad++

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 2.5k 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.
  • T
    The Best Of Voice
    last edited by Feb 16, 2020, 8:25 PM

    hi guys i will in notpad++ this list for example just numbers remove in list

    example list

    123456
    123
    asd123
    12345asd
    admin123

    result
    asd123
    12345asd
    admin123

    for result just remove all number not remove word+number or number+word only remove number full

    A 1 Reply Last reply Feb 16, 2020, 8:30 PM Reply Quote 0
    • A
      Alan Kilborn @The Best Of Voice
      last edited by Feb 16, 2020, 8:30 PM

      @The-Best-Of-Voice

      Try a regular-expression replacement, searching for ^\d+\R and replacing with nothing.

      1 Reply Last reply Reply Quote 2
      • G
        guy038
        last edited by Feb 16, 2020, 8:49 PM

        Hello, @the-best-of-voice and *All,

        • Open the Replace dialog ( Ctrl + H )

        • SEARCH ^\h*\d+\h*\R

        • REPLACE Leave EMPTY

        • Tick the Wrap around option, if all the file must be processed and untick this option if the replacement must occur from current location till the very end of file, only

        • Select the Regular expression search mode

        • Click on the Replace All button


        Notes :

        • From beginning of line ( ^ ), it matches possible horizontal blank characters, as Space, Tabulation ( \h* )

        • Followed with a non-null range of digits (\d+ )

        • Followed with possible horizontal blank characters, again ( \h* )

        • And ended with its EOL chars ( \r\n for Windows files, \n in Unix files or \r in Mac files )

        • As replacement zone is EMPTY, the entire line, containing digits, only, with possible blank chars, is then deleted

        Best Regards,

        guy038

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