add package crawler
This commit is contained in:
1 parent
f7324a4b52
commit
715e052c02
5 files changed
+249
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user