hello, let's say i have this url : "http://www.xxx.com/foo/bar" and i'd like to somehow get the string "bar" question : how can i do that ?
junk<
It would be in string.split Take a look at the code for SiteAcess BZ At 12:58 PM +0100 3/22/01, Junk wrote:
hello,
let's say i have this url : "http://www.xxx.com/foo/bar" and i'd like to somehow get the string "bar"
question : how can i do that ?
junk<
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
string.split(URL,'/')[-1] ----- Original Message ----- From: "Junk" <junk@gargl.net> To: <zope@zope.org> Sent: Thursday, March 22, 2001 11:58 AM Subject: [Zope] url question...
hello,
let's say i have this url : "http://www.xxx.com/foo/bar" and i'd like to somehow get the string "bar"
question : how can i do that ?
junk<
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Junk wrote:
hello,
let's say i have this url : "http://www.xxx.com/foo/bar" and i'd like to somehow get the string "bar"
question : how can i do that ?
You may want to look at the PathHandler product. cheers, Chris
participants (4)
-
BZ -
Chris Withers -
Junk -
Peter Bengtsson