public static List<String> getAllGroups(Pattern pattern, CharSequence content) {
		return getAllGroups(pattern, content, true);
	}
@Test
	public void getAllGroupsTest() {
		//转义给定字符串，为正则相关的特殊符号转义
		final Pattern pattern = Pattern.compile("(\\d+)-(\\d+)-(\\d+)");
		List<String> allGroups = ReUtil.getAllGroups(pattern, "192-168-1-1");
		assertEquals("192-168-1", allGroups.get(0));
		assertEquals("192", allGroups.get(1));
		assertEquals("168", allGroups.get(2));
		assertEquals("1", allGroups.get(3));

		allGroups = ReUtil.getAllGroups(pattern, "192-168-1-1", false);
		assertEquals("192", allGroups.get(0));
		assertEquals("168", allGroups.get(1));
		assertEquals("1", allGroups.get(2));
	}