| 457 | * 返回匹配的结果数组 |
| 458 | * */ |
| 459 | public static String[] RegCheck(String str,String reg){ |
| 460 | String[] result=new String[4]; |
| 461 | String[] resultnew = {}; |
| 462 | Pattern p = Pattern.compile(reg); |
| 463 | Matcher m = p.matcher(str); |
| 464 | if (m.matches()) { |
| 465 | for(int i=0;i<=m.groupCount();i++){ |
| 466 | result[i]=m.group(i); |
| 467 | //System.out.println("result[i]:"+result[i]); |
| 468 | //System.out.println("m.group(i):"+m.group(i)); |
| 469 | } |
| 470 | return result; |
| 471 | }else { |
| 472 | return resultnew; |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | public static void ExceptionCheck(WebInfo wi){ |
| 477 | if(wi.title == null){ |