[Zope] splitting strings ??

Geir B Hansen Geir B Hansen <geirh@funcom.com>
Thu, 6 Jan 2000 12:01:11 +0100


i'm not very knowledgeable in the ways of python, but i've found out
how to split strings by separators :
for example :
<dtml-if expr="_.string.split(_['REMOTE_ADDR'],'.')[1] == '71'">etc...

how do i reference the *last* character of a string, not using any
separators ??

--
Geir B Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com