private static boolean acceptableRegExp(String pattern) {
    final int len = pattern.length();

    for(int i=0;i<len;++i) {
      if (pattern.charAt(i) == '*') {
        return true;
      }
    }

    return false;
  }
private static boolean acceptableRegExp(String pattern)