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 and replace invisible garbage in a text file.

[^\x00-\x7F]