in reply to extract the value before a particualr string
I suggest to split on the regex /\s|\// and then to pick the second from last element of the resulting array.