// Extrair grupos com regex - http://pt.stackoverflow.com/q/191280/53463
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Ideone
{
{
final String regex
= "^\\{([\\dA-F]{8}(?:-[\\dA-F]{4}){4}[\\dA-F]{8})\\} \\| (\\d{2}/\\d{2}/\\d{4}|\\d{4}-\\d{2}-\\d{2})"; final String linha
= "{E4AE5831-548B-4429-CB99-2429334A6348} | 16/03/2017 00:59:35 | [ColetaCPFVerificaColetaInicialReportCode] : [O seguinte prompt serĂ¡ vocalizad";
final Pattern p = Pattern.compile(regex);
final Matcher m = p.matcher(linha);
if(m.find()){
System.
out.
println(m.
group(1)); System.
out.
println(m.
group(2)); }
}
}
Ly8gRXh0cmFpciBncnVwb3MgY29tIHJlZ2V4IC0gaHR0cDovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMTkxMjgwLzUzNDYzCmltcG9ydCBqYXZhLnV0aWwucmVnZXguTWF0Y2hlcjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5QYXR0ZXJuOwoKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWZpbmFsIFN0cmluZyByZWdleCA9ICJeXFx7KFtcXGRBLUZdezh9KD86LVtcXGRBLUZdezR9KXs0fVtcXGRBLUZdezh9KVxcfSBcXHwgKFxcZHsyfS9cXGR7Mn0vXFxkezR9fFxcZHs0fS1cXGR7Mn0tXFxkezJ9KSI7CgkJZmluYWwgU3RyaW5nIGxpbmhhID0gIntFNEFFNTgzMS01NDhCLTQ0MjktQ0I5OS0yNDI5MzM0QTYzNDh9IHwgMTYvMDMvMjAxNyAwMDo1OTozNSB8IFtDb2xldGFDUEZWZXJpZmljYUNvbGV0YUluaWNpYWxSZXBvcnRDb2RlXSA6IFtPIHNlZ3VpbnRlIHByb21wdCBzZXLDoSB2b2NhbGl6YWQiOwoJCQoJCWZpbmFsIFBhdHRlcm4gcCA9IFBhdHRlcm4uY29tcGlsZShyZWdleCk7CgkJZmluYWwgTWF0Y2hlciBtID0gcC5tYXRjaGVyKGxpbmhhKTsKCgkgICAgaWYobS5maW5kKCkpewoJICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4obS5ncm91cCgxKSk7CgkgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihtLmdyb3VwKDIpKTsKCSAgICB9Cgl9Cn0=