[Tutor] parse text file

Norman Khine norman at khine.net
Mon Feb 1 12:29:44 CET 2010


On Mon, Feb 1, 2010 at 10:57 AM, spir <denis.spir at free.fr> wrote:
> On Mon, 1 Feb 2010 00:43:59 +0100
> Norman Khine <norman at khine.net> wrote:
>
>> but this does not take into account of data which has negative values
>
> just add \-? in front of \d+

thanks, what about the whitespace problem?

>
> Denis
> ________________________________
>
> la vita e estrany
>
> http://spir.wikidot.com/
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )


More information about the Tutor mailing list