public String findInContent(String content){
  for (  BoyerMooreMatcher matcher : strings) {
    if (matcher.findInContent(content) >= 0)     return matcher.getPattern();
  }
  Matcher matcher;
  for (  Pattern pattern : patterns) {
    matcher=pattern.matcher(content);
    if (matcher.find()) {
      return matcher.group();
    }
  }
  return null;
}

public String findInContent ( String content ) { for ( BoyerMooreMatcher matcher : strings ) { if ( matcher . findInContent ( content ) >= 0 ) return matcher . getPattern ( ) ; } Matcher matcher ; for ( Pattern pattern : patterns ) { matcher = pattern . matcher ( content ) ; if ( matcher . find ( ) ) { return matcher . group ( ) ; } } return null ; }
search for an occurrence inside a specific content
