All pastes #89734 Raw Edit

Someone

public text v1 · immutable
#89734 ·published 2006-07-16 22:42 UTC
rendered paste body
String regexp = null;
Pattern pattern = null;
Matcher matcher = null;

for(int x=0;x<registry_list.size();x++) {
  for(int y=0;y<formularies_list.size();y++) {
    pattern = Pattern.compile("\\b" + Pattern.quote((String)formularies_list.get(y)) + "\\b");
    matcher = pattern.matcher((String)registry_list.get(x));
    if (matcher.find()) {
      results_list.add(registry_list.get(x));
      break;
    }
  }
}