On Thu Aug 07 22:08 +0200, Buchan Milne wrote:
> On Thu, 7 Aug 2003, Levi Ramsey wrote:
> 
> > On Thu Aug 07 15:34 -0400, David Walser wrote:
> > > Apparently they can now, but they used to be totally illegal, and for good 
> > > reason.  It makes it near impossible to parse the filename.
> > 
> > Parse it from the end...
> 
> I was going to suggest that too, but couldn't come up with a regex. 
> Where's yours? ;-).

Will BNF do?

<package_filename> ::==
<package_name>-<version>-<version>.<arch>.rpm

;; Not sure if all valid characters
<package_name> ::== {<valid_chars> | "-" | "+"}

<version> ::== {<valid_chars>}

;; Not completely valid BNF syntax here, but I don't
;; feel like putting in bars between all characters...

<valid_chars> ::==
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789.

-- 
Levi Ramsey
[EMAIL PROTECTED]                           [EMAIL PROTECTED]

Take due notice and govern yourselves accordingly.
Currently playing: George Carlin - - Son of WINO
Linux 2.4.21-3mdk
 16:41:00 up 3 days,  1:59,  9 users,  load average: 0.09, 0.06, 0.06

Reply via email to