I have a rare requirement to obtain the captures in strict order. This can be easily accomplished by replacing: > capture = new HashMap<>(); With > capture = new LinkedHashMap<>(); in `Match.java` Kindly consider including this in the next release.