EX 1:
String testString = "<.asdasd>htmlasdasd</zxc> <asasd>xxxsss</aas>";
Pattern pattern = Pattern.compile(">.*<");
Matcher matcher = pattern.matcher(testString);
while(matcher.find()) {
System.out.println(matcher.group());
}
沒有留言:
張貼留言