(String str)
| 91 | } |
| 92 | //邮箱匹配 |
| 93 | public static String Email(String str){ |
| 94 | ArrayList<String> email = new ArrayList<>(); |
| 95 | String is_email = "\\b[\\w-]+(?:\\.[\\w-]+)*@([\\w](?:[\\w-]*[\\w])?\\.)+(?:((?!png))((?!jpg))((?!jpeg))((?!gif))((?!ico))((?!html))((?!js))((?!css)))[A-Za-z]{2,6}"; |
| 96 | Matcher matcher = Pattern.compile(is_email).matcher(str); |
| 97 | while (matcher.find()){ |
| 98 | email.add(matcher.group()); |
| 99 | } |
| 100 | // 去重 |
| 101 | List<String> email_rd = Re.removeDuplicate(email); |
| 102 | return StringUtils.strip(email_rd.toString(),"[]"); |
| 103 | } |
| 104 | |
| 105 | // js路径匹配 |
| 106 | public static String Path(String str){ |
no test coverage detected