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