stripping text from a string

From: Date: Fri, 29 Oct 2004 20:23:54 +0000
Subject: stripping text from a string
Groups: php.general 
Request: Send a blank email to php-general+get-200684@lists.php.net to get a copy of this message
Hi, I use a piece of proprietary software at work that uses weird session ID strings in the URL. A sample URL looks like: http://zed2.mdah.state.ms.us/F/CC8V7H1JF4LNBVP5KARL4KGE8AHIKP1I72JSBG6AYQSMK8YF4Y-01471?func=find-b-0 The weird session ID string changes each time you login. Anyway, how can I strip out all of the text between the last / and the ? and insert it into another variable? So in this case, the end result would be a variable containing: CC8V7H1JF4LNBVP5KARL4KGE8AHIKP1I72JSBG6AYQSMK8YF4Y-01471 thanks!

« previous php.general (#200684) next »