class RETest{ public void static main(String args[]){ String testString3 = "0911-111111, 02-22222222, 0922-222222, 03-33333333"; pattern = Pattern.compile(".*/name/(.*)\" class.*"); matcher = pattern.matcher(testString3); while (matcher.find()) { System.out.println("matcher.group():\t"+matcher.group()); } } }
沒有留言:
張貼留言