public DateTime getTime() throws ParseException { try { Date date = myRegex.getDateFormatter().parse(matcher.group("timestamp")); return new DateTime(date); } catch (ParseException e) { System.out.println(myRegex.getDateFormatter().toPattern() + "|" + matcher.group("timestamp")); return null; } }
public boolean hasGroup(String name) { return match && myRegex.hasGroup(name); }