help-gnu-emacs
[Top][All Lists]
Advanced

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

About `package-subdirectory-regexp'


From: Xue Fuqiao
Subject: About `package-subdirectory-regexp'
Date: Sun, 10 Mar 2013 16:20:15 +0800

In startup.el:

  (defconst package-subdirectory-regexp
    
"\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\)[0-9]+\\)*\\)"
  [...])

Why use non-greedy variants of the operator `*' in the first expression?
Call me stupid, but I fail to see any benefit here.  Can anybody help?
Thanks.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]