• Login
Community
  • Login

Regex - Find in Files.. and remove all files that contain any characters other than letters and numbers

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 2.2k 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.
  • S
    Stas
    last edited by Feb 9, 2017, 7:39 AM

    Hello! Please help!

    1. I need to delete all files that contain any characters other than letters and numbers.

    2. Remove any characters other than letters and numbers in all txt files.

    C 1 Reply Last reply Feb 9, 2017, 10:50 PM Reply Quote 0
    • S
      Stas
      last edited by Feb 9, 2017, 10:15 AM

      But best of all is the ability to list all the characters that are in some documents. Then remove all these documents or replace these symbols on any others.

      1 Reply Last reply Reply Quote 0
      • C
        Claudia Frank @Stas
        last edited by Feb 9, 2017, 10:50 PM

        @Stas

        a regex can modify text but cannot delete files.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • V
          Vasile Caraus
          last edited by Feb 14, 2017, 2:56 PM

          You can to this. make a search and replace in all files with Regular Expression:

          1. Search [~}{@%.!)\]*(?&$#,=/[^+-]
          2. Replace by (leave empty)

          This will delete all the special characters from files, and will remain only letters and numbers.

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