I am trying to come up with a regular expression that will capture a string that contains two instances of "(v#)" (where # can be any number). For example, the string "Test (v6)" would not be captured, but "Test (v6) Word (v2)" would be since it contains two instances of the "(v#)". The furthest I've gotten is:
^.*?(\((v)(\d+)(\))){2}
but that only works if the version numbers ("(v#)") are right next to each other.
UPDATE:
Actually my issue would be solved if I could get the regular expression to make sure that the very end of the string contains (v#). I really want to ignore the middle version number. I know that involves using $ instead of ^ but that's all I have so far.