(String data, String reg)
| 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 = ""; |
no outgoing calls
no test coverage detected