snippets > remove-invisible-characters-using-regex

June 26, 2020

Remove invisible characters from text using regex

The following regex matches any non-ASCII characters, so it can be used to search for and replace invisible characters in a text file.

[^\x00-\x7F]