Re: regex to get version from file name

2014-02-21 Thread Shawn H Corey
On Fri, 21 Feb 2014 16:21:57 +0200 Wernher Eksteen wrote: > Hi all, > > From the below file names I only need the version number 1.2.4 without > explicitly specifying it. > > check_mk-1.2.4.tar.gz > check_mk-agent-1.2.4-1.noarch.rpm > check_mk-agent-logwatch-1.2.4-1.noarch.rpm > check_mk-ag

regex to get version from file name

2014-02-21 Thread Wernher Eksteen
Hi all, >From the below file names I only need the version number 1.2.4 without explicitly specifying it. check_mk-1.2.4.tar.gz check_mk-agent-1.2.4-1.noarch.rpm check_mk-agent-logwatch-1.2.4-1.noarch.rpm check_mk-agent-oracle-1.2.4-1.noarch.rpm mk-livestatus-1.2.4.tar.gz mkeventd-1.2.4.tar