Use numbered capturing groups instead of named in favor of Java 6

Fixes #836