Community
    • Login

    unable to find and replace quotation mark

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 4.2k 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.
    • Paul NemerP Offline
      Paul Nemer
      last edited by

      Hello,

      I have many html files that have the wrong style quotation.

      Wrong quotation: ”
      Correct quotation: "

      As you see, there is a difference in style. Here they are side by side: ” "

      How do I replace all ” with the standard looking quotation " in Notepad++?

      Thanks

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Paul Nemer
        last edited by

        @Paul-Nemer

        open find in files dialog put your terms in, create a filter for your files
        choose a start directory maybe include subdirectories and do replace all.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Paul NemerP Offline
          Paul Nemer
          last edited by

          Thanks for the reply Claudia, but I am a bit confused on the filters.

          Find what: ” (curved quotation mark)
          Replace: " (straight quotation mark)
          Filters: . (What do I put in filters?)

          Normally, I know how to use the find and replace field, I do it to an entire directory filled with thousands of files, no problem. But it doesn’t seem to work for the quotation marks.

          Thanks.

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

            @Paul-Nemer and @Claudia-Frank

            I think the difficulty may come in because Paul doesn’t know how to get the “wrong” quotation mark into the Find-what box. Indeed, if you merely type it manually into the box, it may actually be the desired quotation mark there, so a find on it could potentially find nothing. So Paul would be left with his original, undesired data.

            What I would do in such a situation is make a selection out of the undesired quotation mark, then invoke the Find dialog box. At this point, Notepad++ would put the undesired quotation mark in the Find-what box, and I could easily type the desired quotation mark version in the Replace-with box. Then either doing a prompted replace action or a replace-all action would complete the task.

            Paul NemerP 1 Reply Last reply Reply Quote 1
            • Paul NemerP Offline
              Paul Nemer @Scott Sumner
              last edited by

              @Scott-Sumner
              Hi Scott,

              I copied the curved quotation mark (undesired quotation) and pasted it in the “find” field. and I am able to locate it no problem in a specific file. However, I am unable to replace it with the straight quotation mark. I have many html files with the wrong quotation marks that i want to replace.

              Claudia FrankC 1 Reply Last reply Reply Quote 0
              • Claudia FrankC Offline
                Claudia Frank @Paul Nemer
                last edited by

                @Paul-Nemer

                may you explain in detail what you do?
                Maybe a screenshot could be helpful as well.
                If you upload the screenshot to a hoster like imgur you
                could embed it into the post when using the following syntax

                ![](web address of the image like www.imgur.com/myimage.png)
                

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0

                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