fork download
  1. import java.util.regex.Matcher;
  2. import java.util.regex.Pattern;
  3.  
  4. class Ideone {
  5. public static void main(String[] args) {
  6. String html = "ItemPago12.569,00DeducoesPagas36.567,52ItensQnt6DeducoesRetidas21.354,11";
  7. Pattern conteudo = Pattern.compile("ItemPago(.*?)Deducoes");
  8. Matcher match = conteudo.matcher(html);
  9. match.find();
  10.  
  11. System.out.println(match.group(1));
  12. }
  13. }
Success #stdin #stdout 0.09s 27828KB
stdin
Standard input is empty
stdout
12.569,00