Community
    • Login

    Deleting specific words .(in multiple files)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 1.4k 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.
    • DoğancanD
      Doğancan
      last edited by Doğancan

      Normally, I can open and delete files one by one, but I cannot do this because there are too many files. Is there a shortcut to this ?

      I can delete it using the regular expression or mark method, but for this I need to open the files one by one.

      fb08a052-f5fb-47c8-b632-be1eea07649d-image.png

      9ee1aa34-3dae-4e35-8552-dba3e05b9127-image.png

      mkupperM 1 Reply Last reply Reply Quote 0
      • DoğancanD Doğancan deleted this topic on
      • DoğancanD Doğancan restored this topic on
      • Alan KilbornA
        Alan Kilborn
        last edited by

        No idea what you’re talking about; perhaps you should try posting again with more detail.

        DoğancanD 1 Reply Last reply Reply Quote 0
        • DoğancanD
          Doğancan @Alan Kilborn
          last edited by

          @Alan-Kilborn I can get these using mark or regular expression using Notepad++, but it only works on the open page, not on other pages.

          Scott NielsonS Alan KilbornA 2 Replies Last reply Reply Quote 0
          • Scott NielsonS
            Scott Nielson @Doğancan
            last edited by Scott Nielson

            @Doğancan you have to let us know what you want to delete. If you know what is to be deleted, click on the “Find in files” tab on top, put that in the “Find all” field and click on “Replace in files” with nothing in the “Replace in files” field.

            1 Reply Last reply Reply Quote 1
            • Alan KilbornA
              Alan Kilborn @Doğancan
              last edited by Alan Kilborn

              @Doğancan

              It seems as if you want to use Mark ing, specifically Bookark ing of lines in order to do your deletion operation, but you want to use it on a multi-file or multi-tab basis. If that’s the case, then, sorry, it doesn’t work multi-tab.

              You’ll have to adjust your regular expression to match specifically the data you wish to delete, and then use Replace All in All Open Documents or Replace in Files to replace your matches with nothing, as Scott said.

              1 Reply Last reply Reply Quote 1
              • mkupperM
                mkupper @Doğancan
                last edited by

                @Doğancan, please take a look at the Search / Find in files... menu option in Notepad++ as I believe that will do what you want.

                • The Find what and Replace with fields are the standard search and replace fields.
                • Filters allows you to search/replace on *.txt files for example. It defaults to blank which is ..
                • Directory is just the directory path of where your files are. Don’t try some path\*.txt as it won’t work…
                • Related to Directory is the In all sub-folders checkbox on the right side. That’s enabled by default. You may want to turn it off.

                You then will do [Replace in Files] but you absolutely should make a full backup of your files first as [Replace in Files] will promptly do the search/replace on all of the files you are filtering for and save those files. There are no backups made by this process which is why you should make your own backups.

                Something that is safer than the [Replace in Files] button is the [Find All] button that is above it. This will scan your files for the Find what pattern and will create a search-results list. You would still need to then click to open the files one by one to test the search/replace.

                1 Reply Last reply Reply Quote 2
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors