Posted By

oobleck on 01/26/12


Tagged

regex non-printing


Versions (?)

Match all non-printing characters (excluding EOL chars)


 / 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.

  1. /[^\P{C}\n\r]/gi

Report this snippet  

You need to login to post a comment.