aus9 wrote:Your first post seems to be asking for a command etc to get to just a version number which is not what you now seem happy with in the last reply?
I also have forgotten what I wrote in my initial post, so yeah, the issue is still unsolved.
Me thinks, anything but numbers and stop (aka ".") in between them can be masked as some kind of [a-z][A-Z] or such... I want it kind of foolproof, best so that it can be used for more than just this variant here, aka for firefox or palemoon modules, but for any modules that have the version number in a given / downloaded name and that the pBuild coder wants to import into a string so that it can be reused in the final version number.
[Like how I ATM do it, every time manually, with my palemoon module: It has the version number of palemoon, but also the version number of the Flash Plugin, but the silly thing with the flash plugin, if you download that, you never get a download that has the Flash version in the file name, but the version number is to be found on the adobe web page you download if from when you do it manually, and can be extracted by analysing the web page.
Of course, if Adobe changes that very coding of the web page, the extraction of the version number could fail.
So, in both cases, the version number for palemoon, and for Flash should always be checked if they are indeed non-empty, and if they are made out of numbers.