Removed the buggy regex library, and conditionally implemented named captures if you have Java 7.

Also removed the named-regex dependency.