by Ricardo Fernández Serrata
Check if text is valid ASCII or if it has surrogate pairs. Helpful to protect against phishing URLs, because it allows you to make sure all chars are not "disguised".
If you're a flow developer, you can CP📋 the expressions used here, to perform input validation.
I used possessive quantifiers in the regex for better performance.
The issue with "Print" POSIX Char Class, is that it isn't 7b ASCII. The Java documentation is wrong. It returns `true` when the string contains \u00ff (a printable non-ASCII char)
Rate and review within the app in the Community section.