import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Ideone {
public static void main
(String[] args
) { String html
= "ItemPago12.569,00DeducoesPagas36.567,52ItensQnt6DeducoesRetidas21.354,11"; Pattern conteudo = Pattern.compile("ItemPago(.*?)Deducoes");
Matcher match = conteudo.matcher(html);
match.find();
System.
out.
println(match.
group(1)); }
}
aW1wb3J0IGphdmEudXRpbC5yZWdleC5NYXRjaGVyOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4LlBhdHRlcm47CgpjbGFzcyBJZGVvbmUgewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIFN0cmluZyBodG1sID0gIkl0ZW1QYWdvMTIuNTY5LDAwRGVkdWNvZXNQYWdhczM2LjU2Nyw1Mkl0ZW5zUW50NkRlZHVjb2VzUmV0aWRhczIxLjM1NCwxMSI7CiAgICAgICAgUGF0dGVybiBjb250ZXVkbyA9IFBhdHRlcm4uY29tcGlsZSgiSXRlbVBhZ28oLio/KURlZHVjb2VzIik7CiAgICAgICAgTWF0Y2hlciBtYXRjaCA9IGNvbnRldWRvLm1hdGNoZXIoaHRtbCk7CiAgICAgICAgbWF0Y2guZmluZCgpOwoKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4obWF0Y2guZ3JvdXAoMSkpOwogICAgfQp9