Search and replace string between 2 points

I have a file that contains the following string.

connect odemgr/bank123@odsd

I am liiking to write a scrupt that will change the par of the string between the "/" and the "@" anyhelp qwould be greatly appriciated.

echo "connect odemgr/bank123@odsd" | sed -e 's#\(connect odemgr/\)bank123\(@odsd\)#\1mytext\2#g'

The issue here is I will not know what the value of bank123 is.

thanks in advance.

echo "connect odemgr/bank123@odsd" | sed -e 's#\(connect odemgr/\).*\(@odsd\)#\1mytext\2#g'

.* will match anything where bank123 is.