![]() In the US, we typically use one of these 3: There's no simple answer for that, because anything above code point 127 involves character encoding. I re-read your question, and on second thought I think you also want to allow for some "Extended ASCII" characters. In PHP: $nonprintable_or_extended = preg_match('//', $string) = 1 So, a regular expression to find any 8-bit characters outside of the normal printable range would be: //īasically, that says "NOT space through tilde". Extended ASCII is decimal 128-255, and normal (7-bit) ASCII printable characters are 32 (space) to 126 (tilde). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |