add package crawler

This commit is contained in:
xixu-me committed 2024-04-16 22:40:44 +08:00
1 parent f7324a4b52
commit 715e052c02
5 files changed
+249 -3

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
package crawler;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class MatcherGetter {
public static Matcher getMatcher(String regex, String htmlContent) {
Pattern p = Pattern.compile(regex);
return p.matcher(htmlContent);
}
}