/ Published in: Regular Expression
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/[^\P{C}\n\r]/gi