String patern = "--t[0-9]*";
if (args[i].matches(patern)) {
    System.out.println("String id right!");
}