in reply to Re: 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

I am curious as to what get_version_home_csv() and get_version_custom1() do? i.e. show some code.

Replies are listed 'Best First'.
Re^3: Using a regex to extract a version from a Un*x path
by Anonymous Monk on Mar 18, 2010 at 13:53 UTC
    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.