Stash 2.x still supports Java 6, even though it is deprecated for removal in Stash 3, so I am not sure if we should be using Java 7 regex named groups. I think this will break if someone's Stash install is using a Java 6 JVM. I just realized this... (after merging this PR :-).