[Zope] Whats the difference ( Newbie question )
Marco Mariani
m.mariani@imola.nettuno.it
Tue, 24 Apr 2001 15:47:09 +0200
On Tue, Apr 24, 2001 at 03:48:53PM +0200, Rubinstein Fredrik wrote:
> Hi there
> <dtml-var "_.str(startdatum[0:4])"> will give me an answer
> <dtml-var "_.str(startdatum[5:2])"> will give me nothing
>
> What function do i use to extract a part of a string.
> Been looking around a python.org finding everything except the
> function I want.
That's ok, 5:2 will go backwards from the fifth character to the second,
thus giving you nothing.
If you want two characters, write 5:7