Given your input I would write the regex as follows:
Match everything that:
- Is separated on the left side by the "/" symbol
- Is separated on the right side by the "/" symbol or end of string ($)
- Contains only numbers and dots (".")
It should be pretty straightforward to write such a regex and less complex than what you originally had.
Edit: OK, sorry, my example wouldn't match this as a version string: "v007". In this case it gets a bit more complicated.