Friday, 9 August 2013

what does this java on regular expression code mean?

what does this java on regular expression code mean?

What does the regular expression mean?
Pattern pattern = Pattern.compile("\\<target>(.*?)\\</target>");
Matcher m = pattern.matcher(line);
while (m.find()) {
String s = m.group(1);
if (s.indexOf("|") != -1)
s = s.substring(0, s.indexOf("|"));
linkslist.add(s);
}
return linkslist;

No comments:

Post a Comment