Refactor to store global compiled Regexes.

Allow uppercase letters in path arguments.

Update path pattern for integration tests.