MCPcopy Create free account
hub / github.com/WindXaa/Android-reverse / RegCheck

Method RegCheck

WebCurl/WebCurl.java:459–474  ·  view source on GitHub ↗
(String str,String reg)

Source from the content-addressed store, hash-verified

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){

Callers 1

strNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected