Community
    • Login

    need help removing suffix of this combo

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.4k 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.
    • Asta YunoA Offline
      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 Offline
        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 Offline
          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 Offline
            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

            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