MCPcopy Create free account
hub / github.com/WindXaa/Android-reverse / getTitle

Method getTitle

WebCurl/WebCurl.java:26–34  ·  view source on GitHub ↗
(String webContent)

Source from the content-addressed store, hash-verified

24 * */
25
26 public static String getTitle(String webContent){
27 Pattern pattern = Pattern.compile("<title>.*?</title>",Pattern.CASE_INSENSITIVE|Pattern.DOTALL);
28 Matcher ma =pattern.matcher(webContent);
29 while (ma.find()){
30 //System.out.println(ma.group());
31 return outTag(ma.group());
32 }
33 return null;
34 }
35
36
37 //去除标题中的一些无关信息

Callers 1

getServerInfoMethod · 0.95

Calls 1

outTagMethod · 0.95

Tested by

no test coverage detected