Subversion Repositories XServices

Compare Revisions

Ignore whitespace Rev 94 → Rev 93

/xservices/trunk/src/java/net/brutex/xservices/ws/impl/StringServiceImpl.java
65,10 → 65,8
Pattern pattern = Pattern.compile(search, allflags);
Matcher matcher = pattern.matcher(res);
StringMatchType rm = new StringMatchType();
while (matcher.find()) {
for(int i=0; i<=matcher.groupCount();i++){
rm.addStringMatch(matcher.start(), matcher.end(), matcher.group(i));
}
while (matcher.find()) {
rm.addStringMatch(matcher.start(), matcher.end(), matcher.group());
}
return rm;
}