Return to Snippet

Revision: 55104
at January 26, 2012 08:54 by oobleck


Updated Code
/[^\P{C}\n\r]/gi

Revision: 55103
at January 26, 2012 08:52 by oobleck


Initial Code
/[^\P{C}\n\r]/

Initial URL

                                

Initial Description
This regex captures non-printing characters (specifically those found when copying text from Photoshop). It's not fully tested, but it worked for me when I needed it. I will add to it as necessary.

Initial Title
Match all non-printing characters (excluding EOL chars)

Initial Tags
regex

Initial Language
Regular Expression