splitti per ? e prendi l'elemento 0
poi lo splitti per / e prendi l'ultimo elemento

that easy!