I've take a look at perl regex and followed your example of using 'd'
instead of '[0-9]:

use PORTSCOUT= limit:^\d\.\d\.\d\.\d+$ will match 0.5.4.18 versions

Thanks

Felix Palmen <[email protected]> escreveu no dia domingo, 24/07/2022 à(s)
02:33:

> Hello Nuno,
>
> * Nuno Teixeira <[email protected]> [20220724 01:53]:
> > PORTSCOUT= limit:^[0-9.]+$$ # ignore master.mint* tags
>
> regarding this, portscout is documented to use perl regex. I didn't try
> myself so far, but this *should* mean [0-9] could be simplified to \d.
>
> Of course, then it wouldn't include a dot (.)
>
> But then, no version number will ever *start* with a dot (I assume).
> With PORTSCOUT limit, I'd try to be as permissive as possible. \d\.\d
> seems to be a (perl regex) pattern matching most "sane" version numbers
> (and reject other tags appearing on github).
>
> Cheers, Felix
>
> --
>  Dipl.-Inform. Felix Palmen  <[email protected]>   ,.//..........
>  {web}  http://palmen-it.de  {jabber} [see email]   ,//palmen-it.de
>  {pgp public key}     http://palmen-it.de/pub.txt   //   """""""""""
>  {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A
>

Reply via email to