in reply to Re^2: Using a regex to extract a version from a Un*x path
in thread Using a regex to extract a version from a Un*x path

Which part of "complicated logic", do you not understand? :) Every time a new version types is added, or there is a new change in the configuration management system, you add a function tailored specifically to that type of path. A single regular expression is the wrong way to deal with this, you need a factory pattern.
  • Comment on Re^3: Using a regex to extract a version from a Un*x path