Re: kleines RegEx Problem
On 24.05.06 23:04:05, Thorsten Haude wrote:
> Moin,
>
> * Andreas Pakulat wrote (2006-05-24 03:06):
> >Das Problem dabei: Bei foobar_version.orig.tar.gz erhalte ich fuer
> >
> >\1 = foobar
> >\2 = version.orig
> >\3 = tar.gz
>
> Du willst aber
> \1 foobar
> \2 version
> \3 orig.tar.gz
> Richtig?
>
> Das klingt nach non-greedy quantifier, kennt Python die nicht?
Keine Ahnung. Ich schau spaeter mal ob ich rauskriege was non-greedy
quantifier sind und ob Python's re-Modul sowas kann..
Andreas
--
You will be Told about it Tomorrow. Go Home and Prepare Thyself.
Reply to: