I need to extract the session and date from the line below, the date I have separated with a dash and a bar.
The patterns work correctly individually but when I try to extract the two, nothing comes.
Pattern p = Pattern.compile("(\w{8}-\w{4}-\w{4}-\w{4}-\w{12}) (\d{2}/\d{2}/\d{4} | \d{4}-\d{2}-\d{2})");
Matcher m = p.matcher("{E4AE5831-548B-4429-CB99-2429334A6348} | 16/03/2017 00:59:35 | [ColetaCPFVerificaColetaInicialReportCode] : [O seguinte prompt será vocalizad");
if(m.find()){
System.out.println(m.group(1));
System.out.println(m.group(2));
}