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

Re: Regexp to parse "Version:" fields



On Wed, Jun 21, 2006 at 09:15:41AM -0300, Otavio Salvador wrote:
> Christoph Haas <haas@debian.org> writes:
> 
> > So before diving into into regular expressions any further (I have no
> > practical experience with lookahead patterns for example) I would like
> > to know if anyone else has worked on this. Perhaps even some Debian tool
> > does this parsing. I need an implementation in Python but if someone
> > shows me Perl code of a non-regexp algorithm I'd be happy, too.
> 
> Use apt_pkg.UpstreamVersion(). Is the easier way to do that.

Wow, this is great. Just why did I implement half of that myself
already? :)

Thanks everybody.

 Christoph
-- 
~
~
".signature" [Modified] 1 line --100%--                1,48         All

Attachment: signature.asc
Description: Digital signature


Reply to: