MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / MatchReg

Method MatchReg

src/Utils/Match.java:44–56  ·  view source on GitHub ↗
(String data, String reg)

Source from the content-addressed store, hash-verified

42 }
43
44 public static String MatchReg(String data, String reg){
45 String total = "";
46 String pattern = reg ;
47 Pattern r = Pattern.compile(pattern);
48 Matcher m = r.matcher(data);
49 if (m.find()) {
50 total = m.group(1);
51 }
52 System.out.println(m.group(0));
53
54 return total;
55
56 }
57
58 public static String MatchReg_code(String data, String reg){
59 String total = "";

Callers 4

mainMethod · 0.95
actionPerformedMethod · 0.80
processHttpMessageMethod · 0.80
setMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected