I have this regex that works OK in perl. However in java I am getting an exception when running this code.
String procTime="125-23:02:01";
String pattern = "([0-9]+)-([0-9]+):([0-9]+):([0-9]+).*";
Pattern r = Pattern.compile(pattern);
Matcher mt = r.matcher(procTime);
String a = mt.group(0); // throws exception not fnd
String d = mt.group(1);