コード例 #1
0
 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;
   }
 }
コード例 #2
0
 public boolean hasGroup(String name) {
   return match && myRegex.hasGroup(name);
 }