Re: Getting part of a string

From: Date: Fri, 27 Sep 2002 15:48:16 +0000
Subject: Re: Getting part of a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117861@lists.php.net to get a copy of this message
reg_match('^/[^/]*/([^/]*)/',$a, $match) $match[1] should contain what you need ed@home.homes2see.com wrote:
I've got a situation where I need to pull a string from a variable but I can't seem to get it figured out. I.e. value of $a = /realtor/Remax/Ed/files/ I need to get the string between the second and third / (slash) What I need: Remax Thanks, Ed


« previous php.general (#117861) next »