charc=92; PATTERN_BLOCK_PATH = Pattern.compile(".*:android" + c + c + "/(?:data|obb|sandbox)$"); match = PATTERN_BLOCK_PATH.matcher(inputStr).matches(); System.out.println(PATTERN_BLOCK_PATH.pattern()+ " match " + inputStr + " => " + match);
PATTERN_BLOCK_PATH = Pattern.compile(".*:android\\\\/(?:data|obb|sandbox)$"); match = PATTERN_BLOCK_PATH.matcher(inputStr).matches(); System.out.println(PATTERN_BLOCK_PATH.pattern()+ " match " + inputStr + " => " + match);
PATTERN_BLOCK_PATH = Pattern.compile(".*:android\\\\\\/(?:data|obb|sandbox)$"); match = PATTERN_BLOCK_PATH.matcher(inputStr).matches(); System.out.println(PATTERN_BLOCK_PATH.pattern()+ " match " + inputStr + " => " + match);
Output
1 2 3 4 5
.*:android\\/(?:data|obb|sandbox)$ match :android\\/data => false .*:android\\\\/(?:data|obb|sandbox)$ match :android\\/data => true .*:android\\\\/(?:data|obb|sandbox)$ match :android\\/data => true .*:android\\\\\\/(?:data|obb|sandbox)$ match :android\\/data => true