Community
    • Login

    Delete multiple characters or words with "Find and Replace" at once

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 4.5k Views 3 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.
    • marko marinM Offline
      marko marin
      last edited by

      Hi,
      I need help deleting the option characters of a question (a) , b) ,…) etc.
      I have searched many forums but I couldnt find any help.
      What I did was find "a) " replace with “empty”, then do the same for "b) ", and "c) "… later.
      Is it possible to do delete all question options at once.
      Following is the question.
      You must open the door immediately.
      a) permission
      b) command
      c) prohibition
      d) request
      What I want is

      1. You must open the door immediately.
        permission
        command
        prohibition
        request

      Thanks in advance…

      Claudia FrankC 1 Reply Last reply Reply Quote 2
      • Claudia FrankC Offline
        Claudia Frank @marko marin
        last edited by Claudia Frank

        @marko-marin

        using regular expression and something like this find what:\s*\w\)\s

        If you want to find out more about regex, I recommend reading this.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 2
        • marko marinM Offline
          marko marin
          last edited by

          @Claudia-Frank said:

          m

          Thanks a lot. It worked for me. This saved my time…

          1 Reply Last reply Reply Quote 1
          • Scott SumnerS Offline
            Scott Sumner
            last edited by

            Hmmm…when I try @Claudia-Frank 's suggestion (with the implied Replace with of nothing ?) on this data:

            You must open the door immediately.
            a) permission
            b) command
            c) prohibition
            d) request
            

            I get this as a result: You must open the door immediately.permissioncommandprohibitionrequest

            I thought the OP wanted this (ignoring the original 1. which isn’t [reasonably?] possible to do):

            You must open the door immediately.
            permission
            command
            prohibition
            request
            

            But apparently it worked for the OP so it’s all good!

            :-D

            Claudia FrankC 1 Reply Last reply Reply Quote 3
            • Claudia FrankC Offline
              Claudia Frank @Scott Sumner
              last edited by Claudia Frank

              @Scott-Sumner

              :-D - that is true - looks like someone ate my start anchor find what:^\s*\w\)\s

              I guess the OP was clever and solved my mistake.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 2
              • marko marinM Offline
                marko marin
                last edited by

                @Claudia-Frank , @Scott-Sumner
                Actually I solved it by adding “\n” to “replace with” .

                1 Reply Last reply Reply Quote 3
                • marko marinM Offline
                  marko marin
                  last edited by

                  @Scott-Sumner said:

                  You must open the door immediately.
                  permission
                  command
                  prohibition
                  request

                  and I got
                  You must open the door immediately.
                  permission
                  command
                  prohibition
                  request

                  which was what I wanted.

                  1 Reply Last reply Reply Quote 2

                  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