public static Pattern createPattern(String[] patterns,boolean isCaseSensitive) throws PatternSyntaxException {
  StringBuffer pattern=new StringBuffer();
  for (int i=0; i < patterns.length; i++) {
    if (i > 0) {
      pattern.append('|');
    }
    appendAsRegEx(true,patterns[i],pattern);
  }
  return createPattern(pattern.toString(),true,true,isCaseSensitive,false);
}

public static Pattern createPattern ( String [ ] patterns , boolean isCaseSensitive ) throws PatternSyntaxException { StringBuffer pattern = new StringBuffer ( ) ; for ( int i = 0 ; i < patterns . length ; i ++ ) { if ( i > 0 ) { pattern . append ( '|' ) ; } appendAsRegEx ( true , patterns [ i ] , pattern ) ; } return createPattern ( pattern . toString ( ) , true , true , isCaseSensitive , false ) ; }
creates a pattern element from an array of patterns in the old ' stringmatcher ' format .
