Match all non-printing characters (excluding EOL chars)


/ Published in: Regular Expression
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. /[^\P{C}\n\r]/gi

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.