MovieFilenameScanner { public static Pattern wpatt(String regex) { return Pattern.compile("(?<=" + WORD_DELIMITERS_MATCH_PATTERN + ")(?:" + regex + ")(?=" + WORD_DELIMITERS_MATCH_PATTERN + ")"); } private  MovieFilenameScanner(File file); static Pattern getTokenDelimitersMatchPattern(); static Pattern iwpatt(String regex); static Pattern wpatt(String regex); static String determineLanguage(String language); static String getLanguageList(String language); static MovieFileNameDTO scan(File file); static String[] getSkipKeywords(); static void setSkipKeywords(String[] skipKeywords, boolean caseSensitive); static String[] getSkipRegexKeywords(); static void setSkipRegexKeywords(String[] skipRegexKeywords, boolean caseSensitive); static String[] getExtrasKeywords(); static void setExtrasKeywords(String[] extrasKeywords); static String[] getMovieVersionKeywords(); static void setMovieVersionKeywords(String[] movieVersionKeywords); static boolean isLanguageDetection(); static void setLanguageDetection(boolean languageDetection); MovieFileNameDTO getDto(); File getFile(); String getFilename(); static void clearLanguages(); static void addLanguage(String key, String strictPattern, String loosePattern); static void setSourceKeywords(List<String> keywords, Map<String, String> keywordMap);  }
@Test public void testWPatterns() { LOG.info("WPatterns"); final Pattern wpatt = MovieFilenameScanner.wpatt("-SMB"); Matcher matcher = wpatt.matcher("a]bc.def.-SMB"); assertTrue(matcher.find()); }