private static int parseOr0(Matcher m,String group){
  String matched=m.group(group);
  if (matched == null) {
    return 0;
  }
  return parseInt(matched);
}

private static int parseOr0 ( Matcher m , String group ) { String matched = m . group ( group ) ; if ( matched == null ) { return 0 ; } return parseInt ( matched ) ; }
parse a group to an int or return 0 if the group wasn ' t matched .
