• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 3.8k 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.
  • M
    marko marin
    last edited by May 23, 2018, 10:23 AM

    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…

    C 1 Reply Last reply May 23, 2018, 10:47 AM Reply Quote 2
    • C
      Claudia Frank @marko marin
      last edited by Claudia Frank May 23, 2018, 10:48 AM May 23, 2018, 10:47 AM

      @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
      • M
        marko marin
        last edited by May 23, 2018, 11:02 AM

        @Claudia-Frank said:

        m

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

        1 Reply Last reply Reply Quote 1
        • S
          Scott Sumner
          last edited by May 23, 2018, 12:23 PM

          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

          C 1 Reply Last reply May 23, 2018, 12:28 PM Reply Quote 3
          • C
            Claudia Frank @Scott Sumner
            last edited by Claudia Frank May 23, 2018, 12:31 PM May 23, 2018, 12:28 PM

            @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
            • M
              marko marin
              last edited by May 23, 2018, 1:06 PM

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

              1 Reply Last reply Reply Quote 3
              • M
                marko marin
                last edited by May 23, 2018, 1:08 PM

                @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
                1 out of 7
                • First post
                  1/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors