Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    7
    2330
    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 marin
      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 Frank 1 Reply Last reply Reply Quote 2
      • Claudia Frank
        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 marin
          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 Sumner
            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 Frank 1 Reply Last reply Reply Quote 3
            • Claudia Frank
              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 marin
                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 marin
                  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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors