Re: [PHP] Re: Pulling out string from a string

2004-05-04 Thread Justin Patrin
Heh, I got ahead of myself anyway. I should have just hard-coded client. preg_match('!/client(\d+)/!', $_SERVER['PHP_SELF'], $matches); $xxx = $matches[1]; Ryan Schefke wrote: Justin, Very nice preg_match statement. I realized I need to make a minor tweek to what I needed. I need to get the number

RE: [PHP] Re: Pulling out string from a string

2004-05-04 Thread Ryan Schefke
Justin, Very nice preg_match statement. I realized I need to make a minor tweek to what I needed. I need to get the number after the "client" string in /tgwedding/users/client1/sites/testgrabid.php ...so, in the string above I need to pull out the number "1". Any help? -Original Message-