On Tue, Jun 9, 2009 at 10:20 AM, David Anderson <[email protected]>wrote:

> comments:
>
> 1) the purposes of re_match_exec_filename() is to check
> that the file (or directory) name matches
> NAME_VERSION_PLATFORM[__PLAN-CLASS][.ext]
> It shouldn't care what the extension is.
> We should change the regex accordingly; currently it's:
>
> '[^.]+_([0-9]+)[.]([0-9]+)_([^.]+?(?:[0-9][0-9.]*[0-9])?)(__[^.]+)?(?:[.]gz|[.]exe|[.]sit|[.]msi)?$'
>
> What should it be?  (I'm not good with regular expressions).


'[^.]+_([0-9]+)[.]([0-9]+)_([^.]+?(?:[0-9][0-9.]*[0-9])?)(__[^.]+)?(?:[.][a-zA-Z0-9\_\-]*)?$'

Would match anything ending (or not) with a period followed by any number of
alpha-numeric characters, underscores, or dashes.

--
Jeremy
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to