[Zope] PATH_INFO und regex

chas panda@skinnyhippo.com
Sat, 02 Oct 1999 16:22:00 +0800


Sorry, I must have been on drugs when I posted this earlier :

>URL1[_.len(SERVER_URL)
>
>That would give you the PATH_INFO minus any trailing dtml methods or
>documents.

I meant :

URL1[_.len(SERVER_URL)+1:]

It's a sad day when I can't even copy/paste properly.

Of course, this might be totally unrelated to what you're actually
looking for but it'll give you  "Level1/Level2" for either of the URLs
"http://domain/Level1/Level2" or "http://domain/Level1/Level2/index_html"
and that's what I thought you were asking for. If not, CTRL+D now.

chas