Community
    • Login

    need help removing suffix of this combo

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 633 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.
    • Asta YunoA
      Asta Yuno
      last edited by

      could you help me deleting the suffix of this line

      jfaiduefouefio: ajjo34lfol

      i want to remove what’s after the “:”

      any help is apprecited

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Asta Yuno
        last edited by

        @Asta-Yuno

        Move your caret to start of line you want to affect, or start of document.

        Find: (?-s):.+
        Replace: :
        Search mode: Regular expression

        Learn more, starting HERE.

        1 Reply Last reply Reply Quote 1
        • guy038G
          guy038
          last edited by

          Hello, @asta-yuno and All,

          Oh, Alan beat me at it !

          Use the following regex S/R :

          • SEARCH (?-s)(?<=:).+

          • REPLACE Leave EMPTY

          • Chose the Regular expression search mode

          Best Regards,

          guy038

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @guy038
            last edited by Alan Kilborn

            @guy038 said in need help removing suffix of this combo:

            Leave EMPTY

            I prefer my solution, because:

            • it is simpler for an obvious newbie like the OP
            • it has a definite replacement field, not “Leave EMPTY”:

            We haven’t heard of it happening yet, but I wonder if anyone’s first try at implementing a solution ever went this way:

            could you help me deleting the suffix of this line
            jfaiduefoue:Leave EMPTY
            i want to remove what’s after the “:Leave EMPTY
            any help is apprecited```
            

            :-)

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