It turns out,
sed has no concept of a non-greedy match. You have to use
perl or some other advanced tool to get that regex feature. The workaround given at Stack Overflow only works if you have a single character ending match delimiter (in this case, it was
[^/]+ to match until the next forward slash).