• Login
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.
  • D
    Doğancan
    last edited by Doğancan Sep 30, 2023, 5:38 PM Sep 30, 2023, 4:54 PM

    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

    M 1 Reply Last reply Oct 1, 2023, 4:22 PM Reply Quote 0
    • D Doğancan deleted this topic on Sep 30, 2023, 5:36 PM
    • D Doğancan restored this topic on Sep 30, 2023, 5:38 PM
    • A
      Alan Kilborn
      last edited by Sep 30, 2023, 6:09 PM

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

      D 1 Reply Last reply Oct 1, 2023, 10:37 AM Reply Quote 0
      • D
        Doğancan @Alan Kilborn
        last edited by Oct 1, 2023, 10:37 AM

        @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.

        S A 2 Replies Last reply Oct 1, 2023, 11:01 AM Reply Quote 0
        • S
          Scott Nielson @Doğancan
          last edited by Scott Nielson Oct 1, 2023, 11:13 AM Oct 1, 2023, 11:01 AM

          @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
          • A
            Alan Kilborn @Doğancan
            last edited by Alan Kilborn Oct 1, 2023, 12:05 PM Oct 1, 2023, 12:04 PM

            @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
            • M
              mkupper @Doğancan
              last edited by Oct 1, 2023, 4:22 PM

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