tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: regexp for correct package version



On Sun, Feb 17, 2008 at 12:44:57AM +0200, Aleksey Cheusov wrote:
> An easiest missed thing is a regular expression for correct package
> version.  Is the following correct (ERE)?
> 
> [0-9]+([.][0-9]+)*((alpha|beta|rc|pre|pl)[0-9]+)?[a-z]?(nb[0-9]+)?

This is only a subset of the allowed syntax. You can have multiple
alpha,rc,pl,... parts for example.

Joerg


Home | Main Index | Thread Index | Old Index