Dear masters! Is it possible to guarantee that only characters with codes between 0 and 255 will be accepted by the regular expression, but all with codes up to 256 not? Thank!
Yes, you can represent hexadecimal ranges in regular expression:
boolean matches = string.matches("[\\x00-\\xFF]+");
This will match anything that contains at least one character in the range 0x00-0xFF.
You can match [\x00-\xFF], i.e. a range of characters from 0 to 255.
[\x00-\xFF]
Source: https://habr.com/ru/post/1738950/More articles:Как я могу получить массив всех элементов в определенном классе с помощью javascript и/или jQuery? - javascriptС# CreatePipe() → Защищенная ошибка памяти - c#Does the query speed depend on the number of rows in the table? - performanceAn exception occurred while trying to reference the LINQ namespace - referenceIs this a problem in the sp_rename function or sql server? - tsqlcurl cookie does not create success - phpASP.NET MVC - a problem with the processing of messages in the drop-down list - c #Get more records that appear more than once - sqlEclipse: How to set the {user} variable? - eclipseКак я могу преобразовать регулярное выражение Perl для работы с Boost:: Regex? - c++All Articles