I\'m using the following regex
^[a-zA-Z0-9\\\',!;\\?\\$\\^:\\\\\\/`\\|~&\\\" @#%\\*\\{}\\(\\)_\\+\\.\\s=-]{1,1000}$
I know it\'s ugly,
you can use ? at the end to skip one "\"
regex("\\\\?")