All pastes #89712 Raw Edit

Unnamed

public text v1 · immutable
#89712 ·published 2006-07-16 22:00 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 = "\\b(" + Pattern.quote((String)formularies_list.get(y)) + ")\\b";
                 if (Pattern.matches(regexp, (String)registry_list.get(x))) {
                    results_list.add(registry_list.get(x));
                    break;
                }
            }
        }