Today I learned how to use javadoc Chinese Edition in Eclipse, hapy J

Continue with my JAVA test series.

?1 import ?java.util.regex.Pattern;
?2
?3 public ? class ?testmatch
?4 {
?5 ???? public ? static ? void ?main(String?args[])
?6 ???? {
?7 ???????? boolean ?valid? = ? false ;
?8 ???????? // String?s?=?
?9 ????????valid? = ?Pattern.matches( " hoho.* " , " hoho123 " );
10 ????????System.out.println(valid);
11 ????????valid? = ?Pattern.matches( " hoho.+ " , " hoho " );
12 ????????System.out.println(valid);
13 ????}

14 }
This is a test of regular expression, I answered in www.javatx.cn ,post here :)