public static boolean isRedirect(String text){
  boolean result=false;
  String pattern;
  for (int i=0; i < redirectPatterns.size() && !result; i++) {
    pattern=redirectPatterns.get(i);
    result=text.regionMatches(true,0,pattern,0,pattern.length());
  }
  return result;
}

public static boolean isRedirect ( String text ) { boolean result = false ; String pattern ; for ( int i = 0 ; i < redirectPatterns . size ( ) && ! result ; i ++ ) { pattern = redirectPatterns . get ( i ) ; result = text . regionMatches ( true , 0 , pattern , 0 , pattern . length ( ) ) ; } return result ; }
check if given text starts with # redirect , with case ignoring
