Optional groups still count when unmatched
Don't ignore unmatched captures
Merge branch 'Caseus/master'

Optional groups should still count when unmatched