OK.. Here you go.. Thanks to the previous posts on the web with slightly modified to your requirements.
=MID(A1,SEARCH("Z",A1,1)+1,SEARCH("^^",SUBSTITUTE(A1,"-","^^",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))))-SEARCH("Z",A1,1)-1)
Just make sure that you do not have "^^" character repeated...