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

Re: kleines RegEx Problem



Hallo Andreas,

On Wed, May 24, 2006 at 03:06:41AM +0200, Andreas Pakulat wrote:
> 
> Jemand nen Tipp wie ich das mit einer regex erschlagen kann (mit
> mehreren ist es kein Problem, das stoert dann aber im Progamm etwas)?

Ich kann kein Python, aber vllt. hilft dir dieser perlre-Ausdruck:

/^([^_]+)_([^_]+)(?<!\.orig)_?(\.(((orig\.)?tar|diff)\.gz|dsc)|\w+\.(deb|changes))$/

> Andreas

Gruß,

f

-- 
Gravity is a myth, the Earth sucks.



Reply to: