if (r == null || str == null) {
throw new IllegalArgumentException("参数不正确,不能是null对象!");
}
List strList = new ArrayList();
RE patt = new RE(str);
CharacterIterator in = new ReaderCharacterIterator(r);
int end = 0;
while (patt.match(in, end)) {
int start = patt.getParenStart(0);
end = patt.getParenEnd(0);
strList.add(in.substring(start, end));
}
String[] tempStr = (String[]) strList.toArray(new String[strList.size()]);
return tempStr;
}