This expression will search for non-ASCII values:

[^\x00-\x7F]+

Tick off 'Search Mode = Regular expression', and click Find Next.

Source: Regex any ASCII character

Answer from ProGM on Stack Overflow
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 26440 › how-to-remove-this-symbols-from-txt-file
How to remove this symbols from txt file | Notepad++ Community
December 19, 2024 - Edit > Character Panel can show you a chart of the character codes vs the character/symbol, and you can use those to help figure out a regex to replace them if it’s more than a handful, but all your data is still there: for example, SYN in the Character column maps to the 16 in the Hex column, so that translates to a regex search of \x16 ; you can do a similar mapping for any others you find.
People also ask

How do I find and remove tab characters in Notepad++?
Open Find and Replace (Ctrl+H), select Extended mode, type \t in Find What, leave Replace With empty, and click Replace All. This removes every tab character from the current document instantly.
🌐
tms-outsource.com
tms-outsource.com › home › how to find special characters in notepad++
How to Find Special Characters in Notepad++
What is the fastest way to find special characters in Notepad++?
Press Ctrl+F, switch to Regular Expression mode, and enter [^\x20-\x7E] in the Find What field. Click Find All in Current Document. This pattern matches every character outside the printable ASCII range in a single operation.
🌐
tms-outsource.com
tms-outsource.com › home › how to find special characters in notepad++
How to Find Special Characters in Notepad++
How do I make hidden characters visible in Notepad++ without searching?
Go to View > Show Symbol > Show All Characters. This renders tabs as arrows, spaces as dots, and line endings as pilcrow symbols. It works as a rendering overlay only and does not modify the file.
🌐
tms-outsource.com
tms-outsource.com › home › how to find special characters in notepad++
How to Find Special Characters in Notepad++
🌐
The Silicon Underground
dfarq.homeip.net › security › remove unicode and extended ascii in notepad++
Remove Unicode and extended ASCII in Notepad++
April 4, 2023 - If you just want to clean up the file and be done with it, I suggest you use a space. Click replace all, and Notepad++ will remove all of those problematic characters, replacing them with what you specified.
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 10222 › how-to-remove-hidden-characters
How to remove hidden characters | Notepad++ Community
September 13, 2015 - It turned out that there was a hidden character in one line causing it to fail. If I remember correctly, I simply changed the encoding in N++ to ANSI to find the hidden characters.
🌐
Notepadok
notepadok.com › blog › en › posts › how-to-remove-unnecessary-characters-in-notepad
How to remove unnecessary characters in Notepad++ - NotepadOK
Deleting all special characters: Enter the code in the Find field and leave the Replace with field empty. ... Notepad++ provides many ways to remove unnecessary characters, from simple search and replace to using regular expressions and plugins.
Find elsewhere
🌐
TMS Outsource
tms-outsource.com › home › how to find special characters in notepad++
How to Find Special Characters in Notepad++
May 15, 2026 - Notepad++ supports full undo on bulk replacements, which makes testing patterns less risky. When the surrounding text matters, regex capture groups keep it intact. For example, to remove a zero-width space that always appears between two word characters, use: (w)x{200B}(w) with replacement 12.
🌐
Blogger
srienievas.blogspot.com › 2016 › 04 › remove-numbers-special-characters-in.html
Remove Numbers ,special characters in a file using Notepad++
April 16, 2016 - Replacing numbers with empty space 1)Ctrl+F 2) Replace - Search mode: regular expression 3) Find What: [0-9]+ 4)Replace Wit...
🌐
W3Schools
w3schools.io › editor › notepad++-view-hidden-chars
How do view special hidden characters in notepad++ Text file? - w3schools
December 31, 2023 - Also, there are other options to the Show Symbol menu item. ... Go to View Menu > Select Show Symbol > Uncheck Show End of line. It removes and hides all characters such as CRLF in the opened file.
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 14099 › remove-special-characters-in-certain-location-in-csv-file
Remove special characters in certain location in csv file | Notepad++ Community
July 9, 2017 - The second capture group is the interesting part as it defines the chars you do not want to have within an alternation (starts with [ and ends with ]). Currently 3 chars are defined, ^ ~ and [. ^ needs to be escaped as it is a special char within regex, as well as [ So if you do not want to have, let’s say a semicolon in addition you would use ... Make sure you’ve backed up the data in case anything goes wrong. ... @Claudia-Frank Hi, When searching with (“file://.?)(.?”) I find the exact entry that starts with file:// and ends with (") When i insert the search for special characters in between (“file://.?) and (.?”), the search marks the line from first occurrence of file:// to the end of the line.
🌐
Winhelponline
winhelponline.com › blog › notepad-plus-find-and-replace-text
Notepad++ Tips: Find and Replace, and Text Manipulation Examples » Winhelponline
December 3, 2020 - Like my favorite 50 or so, at least, as I am using notepad++ with regex a LOT: It works GREAT 🙂Reply · I noticed that there are a few points, can we do it differently to make it easier to understand? Ex : ” Remove a fixed number of character …” , I did the same thing but I used regex : Find what : ^.+ ( a space after the ‘+’ ) . Replace with: I leave it blank. And In ” Remove text after a specific character …” I used regex: Find what : -.* Replace with : I leave it blank.
🌐
YouTube
youtube.com › watch
How to use Notepad++ to Find and Fix Bad Characters in a String or Text File - YouTube
As a data analyst, sometimes you’ll encounter situations where a text file, or a web API response string, or a database field value is crashing your software...
Published   September 23, 2021
🌐
Txcontact
helpdesk.txcontact.com › kb › article › 21-removing-all-non-ascii-characters
How to remove all non ASCII characters
The file containing non-ascii characters can be uploaded and the cleaned file would be downloaded. Use File Check ( TxDialer > Tools > File Check ) to look for special and non-ascii characters · How to remove all non ascii characters with regex? Install Notepad++ Editor from https://notepad-plus-plus.org/ Using Notepad++ Open the .csv file.
🌐
Quora
quora.com › How-do-you-delete-a-text-after-a-specific-character-in-Notepad
How to delete a text after a specific character in Notepad ++ - Quora
Answer (1 of 2): Use the Replace tool, and use the “Regular Expression” (regex) settings. You’ll need to find the regex expression that matches everything after the specific character, and replace it with nothing. This Regex tool might help: RegExr: Learn, Build, & Test RegEx
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 21235 › remove-letters-only-in-text
remove letters only in text | Notepad++ Community
May 28, 2021 - Since you are wanting to delete letters only (not numbers or punctuation) there are two reasonable classes you could use; the first would be [\u\l] which matches any uppercase or lowercase character; the second would be to used the named class [[:alpha:]]. ... Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as literal text using the </> toolbar button or manual Markdown syntax. To make regex in red (and so they keep their special characters like *), use backticks, like `^.*?blah.*?\z`. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data.
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 19359 › how-to-remove-characters-and-text-inside
How to remove characters () and text inside | Notepad++ Community
May 10, 2020 - If, instead, you really want it to only remove the (...) from a specific tag (we’ll assume tag), then use a FIND of (<tag>.*)\(.*\)(</tag>), and the same REPLACE from #2.
Top answer
1 of 3
4

[^\x00-\x7F] works fine, but, if you want to use a long character class like [^a-z0-9``~!@#$%^&*()-_=+[]{}\|;:'"<>,./?] you have to escape characters that have a special meaning (ie. -[]\ and add linebreak \r,\n.

Your regex becomes:

 [^a-z0-9``~!@#$%^&*()\-_=+\[\]{}\\|;:'"<>,./?\r\n]
 #                    ^    ^ ^   ^            ^^^^

  • Ctrl+H
  • Find what: [^a-z0-9``~!@#$%^&*()\-_=+\[\]{}\\|;:'"<>,./?\r\n]+$ But, again, [^\x00-\x7F] works fine and is more readable
  • Replace with: LEAVE EMPTY
  • check Wrap around
  • check Regular expression
  • Replace all

Result for given example:

0123456789`~!@#$%^&*()-_=+[]{}\|;:'"<>,./?
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
2 of 3
0

If you are agnostic to the solution and not fixed to Notepad++ you could install bash for Win 10, as I showed here https://superuser.com/a/1252271/715210 (sorry I always come back to your questions with Linux workarounds ;) )

I would have a solution, where you unfortunately also will loose the apostrophe '

  1. open bash for Windows over start menu
  2. Go to the folder, where your file is located with cd /mnt/c/path/folder (the drive C: is on /mnt/c)
  3. If your file is named foo.txt you could generate a file bar.txt with this command:

    cat foo.txt | tr -cd '[:alnum:]\n\r~!@#$%^&*()-_=+{}\|;:<>,./?"`' | sed '/^$/d' > bar.txt

Explanation of the parts:

cat foo.txt outputs the text file and with the pipe | the output is redirected to the commande tr -cd which removes every char, which is not in the list after betwenn '...'. Followed by a pipe tosedto remove the empty lines. Last but not least with> bar.txt` we redirect the output to the file bar.txt

Thanks to:

  • https://stackoverflow.com/a/20007549/7311363 for the :alnum: tip
  • https://unix.stackexchange.com/a/48568/223965 for the apostrophe explanation