Good day! I have a regex pattern :
Pattern p = Pattern.compile("^[a-zA-Z_\\$][\\w\\$]*(?:\\.[a-zA-Z_\\$][\\w\\$]*)*$");
It should tell me if java / android package name is legal or not. It works fine on desktop java, but it failures on android devices
Lets say I have some package names :
". .", "ПАвыапЫВАПыва", "com.mxtech.ffmpeg.v7_neon", ...
Test should show that the only valid package is "com.mxtech.ffmpeg.v7_neon", but is also shows that test string
" _ПАвыапЫВАПыва\_ "
is valid. Why? (It is Cyrillic. )
What is the difference between Android and Desktop realizations?