All pastes #89687 Raw Edit

Untitled

public text v1 · immutable
#89687 ·published 2006-07-16 21:36 UTC
rendered paste body
        Pattern pattern = null;
        Matcher matcher = null;
        String regexp = null;
        for(int x=0;x<registry_list.size();x++) {
            for(int y=0;y<formularies_list.size();y++) {
                regexp = "(.*)(\\.|\\-|,|\\(|\\|\\s)("+(String)formularies_list.get(y)+")(.*)$";
                regexp = "(.*)("+(String)formularies_list.get(y)+")(\\.|\\-|,|\\(|\\)|\\s)(.*)$";
                regexp = "(.*)(\")("+(String)formularies_list.get(y)+")(.*)$";
                regexp = "(.*)("+(String)formularies_list.get(y)+")(\")(.*)$";
                pattern = Pattern.compile(regexp);
                matcher = pattern.matcher((String)registry_list.get(x));
                if(matcher.matches()) {
                    results_list.add(registry_list.get(x));
                    break;
                }
            }
        }