[Zope] Seperate Parts of a String

Chris Withers chrisw@nipltd.com
Tue, 20 Mar 2001 10:53:22 +0000


Marc Fischer wrote:
> 
> Hi,
> 
> does anybody know how to seperate parts of a string?
> 
> For example: I have got documents with the Ids: N_1, N_2, ...
> 
> Is there any function that returns only the numbers behind N_, so i can
> calculate with them?

_.int(_.string.split(id,'_')[1])

:-)

Chris