^[^\x00-\x1F\x7F-\xFF]+$
This regex will be match a string containing non-printable (hex 00-1f) or extended ASCII characters (hex 80-FF), but, unlike PHP, allows non-ASCII utf-8 characters are transmitted. (e.g. 日本 واستقراره हिन्दी ދިވެހިބަސް ગુજરાતી 한)
Looking at the wikipedia page on UTF-8, all of them should fall in the 80-ff range. Does anyone know what I am missing?
In addition, if you could explain how to ignore the quoted text, you will forever remain my hero.
source
share