[NEXUS-6549] .* is too greedy, change first match group to use [^/]* instead