Java: Regex not finding string
I am having issues with this code:
For some reason, it always fails to match the code.

                    for (int i = 0; i < pluginList.size(); i++) {
                        System.out.println("");
                        String findMe = "plugins".concat(FILE_SEPARATOR).concat(pluginList.get(i));

                        Pattern pattern = Pattern.compile("("+name.getPath()+")(.*)");
                        Matcher matcher = pattern.matcher(findMe);
                        
                        // Check if the current plugin matches the string.
                        if (matcher.find()) {
                            // Return false for exclude, true to include.
                            if(pluginListMode)
                                return false;
                            else
                                return true;
                        }
                    }
Java: Regex not finding string
===

I am having issues with this code:
For some reason, it always fails to match the code.

                    for (int i = 0; i < pluginList.size(); i++) {
                        System.out.println("");
                        String findMe = "plugins".concat(FILE_SEPARATOR).concat(pluginList.get(i));

                        Pattern pattern = Pattern.compile("("+name.getPath()+")(.*)");
                        Matcher matcher = pattern.matcher(findMe);
                        
                        // Check if the current plugin matches the string.
                        if (matcher.find()) {
                            // Return false for exclude, true to include.
                            if(pluginListMode)
                                return false;
                            else
                                return true;
                        }
                    }